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