[Klug-general] USB & rsync +file exclude?

sharon kimble boudiccas at talktalk.net
Thu Sep 29 17:01:47 UTC 2011


i have the following stanza in my users crontab backup.sh; =
#shell script for use with rsync in user crontab
if [ -d /media/disk/ ]; then
   /usr/bin/rsync -av /home/boztu/ /media/disk/`/bin/date +%Y%m%d`/ \
   >> /home/boztu/cron/backup.txt
fi

if [ -d /media/usb/ ]; then
   /usr/bin/rsync -av /home/boztu/ /media/usb/`/bin/date +%Y%m%d`/ \
   >> /home/boztu/cron/backup.txt
fi

How do I exclude /home/boztu/music please? 

Take care
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk/taste/index.html
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
Debian 6,0.2, KDE 4.4.5, LibreOffice 3.4.3
Registered Linux user 334501 



More information about the Kent mailing list