rsync or replacement backup
Karl Larsen
k5di at zianet.com
Mon May 19 19:58:01 UTC 2008
I was in hope what I saw today was a good way to use rsync but I was
wrong. The method presented was not complete and didn't work as written.
This seems to be a big problem with rsync :-)
What I want to see is a way to use rsync and be able to tell it a
few directories to not back up. Or, as good would be a way to tell it to
only backup these directories. What I use now is not good but it works.
Here it is:
karl at karl-desktop:~$ cat /root/bin/backup
# This file is designed to backup my Ubuntu to the USB Hard Drive using
rsync
# Karl Larsen, 26 Feb 08
rsync -avz /boot /media/disk/
rsync -avz /bin /media/disk/
rsync -avz /dev /media/disk/
rsync -avz /etc /media/disk/
rsync -avz /lib /media/disk/
rsync -avz /opt /media/disk/
rsync -avz /root /media/disk/
rsync -avz /sbin /media/disk/
rsync -avz /srv /media/disk/
rsync -avz /sys /media/disk/
rsync -avz /tmp /media/disk/
rsync -avz /usr /media/disk/
rsync -avz /var /media/disk/
rsync -avz /initrd /media/disk/
Of course /sbin is the current sbin directory. /media/disk/ is where
the USB hard disk is located.
So does anyone know a good one line way to do the same thing?
Karl
--
Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
PGP 4208 4D6E 595F 22B9 FF1C ECB6 4A3C 2C54 FE23 53A7
More information about the ubuntu-users
mailing list