Rsync and snapshot backups
Steve
zflyer at gmail.com
Tue Nov 20 20:54:02 GMT 2007
On Nov 20, 2007 2:56 PM, Matt McCutchen <matt at mattmccutchen.net> wrote:
> No, because rsync only backs up files from the destination and your
> destination is now a new, empty directory instead of the previous
> snapshot.
Yep, I understood why it was working this way, just thought I may be
missing an option to tweak the behavior.
> You can already recover files from previous snapshots; are you sure you
> also want a backup dir? If so, the best way I can think of to achieve
> this is to fill /u1/home_${datetime} with hard links
> from /u1/home.current using "cp -al" and then run the rsync command
> without the --link-dest option. To ensure that rsync does not corrupt
> attributes as seen through old snapshots, I recommend that you use a
> copy of rsync with this patch:
>
> https://bugzilla.samba.org/attachment.cgi?id=2960&action=view
>
> and pass the --no-tweak-hlinked option.
I will look into this, thanks for your help!
Steve
More information about the rsync
mailing list