Re: Questions with rsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



bin
boot
docs
download
etc
home
lib
lib64
lost+found
media
mnt
opt
root
sbin
selinux
srv
tmp
usr
var

Attachment: rsync_backup.sh
Description: application/shellscript

Attachment: rsync_restore.sh
Description: application/shellscript

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux