easiest way to do incrimentals?

Wayne Davison wayned at samba.org
Wed May 18 14:32:47 GMT 2005

On Tue, May 17, 2005 at 02:08:59PM -0400, Vincent Yonemitsu wrote:
> With the --backup and --backup-dir options that means that it copies
> out the files that are going to be changed before overwriting them to
> the specified directory?

Yes.  That gives you a hierarchy with just the old version of changed
files in it.  It can be better to do a --compare-dest or --link-dest
into a new (empty) hierarchy, as this gives you a hierarchy with either
(for --compare-dest) just the new version of changed files in it or (for
--link-dest) all the files with identical files hard-linked together
with the older files.  There are backup programs built on rsync that
have worked out details such as this for you (some are mentioned on the
resources page of the rsync website).


More information about the rsync mailing list