While we are talking about rsync+backup scripts. Here is a one-liner I use to backup my disk, taken from my local Linux user group mailing list (SLUG):
rdiff-backup -v2 --print-statistics --exclude-other-filesystems ::/home '/media/FreeAgent Drive_/Backup/wanaka-home/' It's available from package "rdiff-backup" on ubuntu and the upstream web site is http://rdiff-backup.nongnu.org/ Cheers, --Amos On 22 March 2011 22:38, Nadav Har'El <n...@math.technion.ac.il> wrote: > On Mon, Mar 21, 2011, Shlomo Solomon wrote about "Re: rsync problem": > > OK - that makes sense - I'll try adding --ignore-errors. I'm not worried > about > > risking a massive deletion since my script checks for an "unusual" change > in > > the size of my backed up directories, so I guess I'd catch that. > > > > I'm not sure I understand what the --backup option does or why it would > solve > > the massive deletion problem. What does --backup do that isn't done by > the > > params I already use (-rlvtogS)? I looked at the man page and it's not > really > > clear on that point. > > The --backup option means that files on the destination system which are > about > to be lost (because they were either deleted or modified on the source > system) > are instead saved (with a new name, or under a different directory if you > also > use the --backup-dir). I use this option as a sort of "incremental" backup > - > I have a useful snapshot of the last full backup, but also copies of all > files as they were at each intermediate change, in case I want to recover > a file that I deleted or modified a month ago, for example. When you do use > --backup, massive deletion is not a terrible problem, because all the > deleted > files are saved in the destination filesystem anyway. > > Nadav. > > -- > Nadav Har'El | Tuesday, Mar 22 2011, 16 Adar II > 5771 > n...@math.technion.ac.il > |----------------------------------------- > Phone +972-523-790466, ICQ 13349191 |Earth First! We can strip-mine the > other > http://nadav.harel.org.il |planets later... > > _______________________________________________ > Linux-il mailing list > Linux-il@cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il >
_______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il