Questions with rsync

Kevin Kempter kevin at kevinkempterllc.com
Wed Jun 3 14:54:56 UTC 2009


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?
>
> poc

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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090603/f5a37679/attachment-0001.htm>
-------------- next part --------------
bin
boot
docs
download
etc
home
lib
lib64
lost+found
media
mnt
opt
root
sbin
selinux
srv
tmp
usr
var
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rsync_backup.sh
Type: application/x-shellscript
Size: 124 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090603/f5a37679/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rsync_restore.sh
Type: application/x-shellscript
Size: 126 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090603/f5a37679/attachment-0003.bin>


More information about the fedora-list mailing list