Question on --backup --backup-dir Switches For Incremental Backs

Wayne Davison wayned at
Fri Feb 16 23:26:27 GMT 2007

On Thu, Feb 01, 2007 at 10:06:48PM -0500, Matt McCutchen wrote:
> While we're on the topic: I was dismayed to discover a while ago that
> rsync doesn't allow different kinds of basis dirs in the same command
> (e.g., --compare-dest=foo --link-dest=bar).

I'm trying to imagine how that would be useful because one of the things
that the options do is to control how the destination hierarchy is
populated, and there's only one destination hierarchy.  About the only
useful combination I can come up with would be using --compare-dest for
the first arg, indicating that you want a sparse destination, and then
link-dest for the rest of the args, indicating that you want to try to
hard-link changed files to prior versions when a change occurs.  Do you
have any other combination of options in mind?


More information about the rsync mailing list