[Gllug] rsync and usb

sharon kimble boudiccas at talktalk.net
Mon Sep 26 00:57:26 UTC 2011


I use rsync to back up my /home to an external hard drive using usb.  This is 
the stanza;= /usr/bin/rsync -av /home/boztu/ /media/disk/`/bin/date +%Y%m%d`/ 
>> /home/boztu/cron/backup.txt

But occasionally when I plug the drive in after a reboot, it comes up with ;= 
/usr/bin/rsync -av /home/boztu/ /media/usb/`/bin/date +%Y%m%d`/ >> 
/home/boztu/cron/backup.txt

How can I add the second line to my backup.sh file such that it will run from 
either stanza 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 
--
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list