|On Wednesday 03 June 2009 08:35:50 Patrick O'Callaghan wrote:|
> On Wed, 2009-06-03 at 03:02 -0700, GMS S wrote:
> > Will this command do the job for backup?
> > rsync -vpa / /home/user/backup
> Er, isn't this recursive?
I didn't really like the behavior of the filter functionality in rsync so I took a different approach. I have a file called dirlist which is the list of root level directories I want to backup, this is coupled with a shell script (rsync_backup.sh) which runs my desired rsync command for each dirname found in the dirlist file. I also have a restore shell script (rsync_restore.sh). I use this to backup my Fedora10 laptop before I run any updates. I have had to go back and run the restore when updates caused video issues, the restore worked flawlessly.
I've attached the dirlist and both rsync scripts (the backup and the restore), hope it's helpful.
bin boot docs download etc home lib lib64 lost+found media mnt opt root sbin selinux srv tmp usr var