--link-dest behavior

Matt McCutchen matt at mattmccutchen.net
Sat Oct 4 21:33:21 GMT 2008

On Sat, 2008-10-04 at 17:26 -0400, Matthew Monaco wrote:
> In the event that --link-dest=DIR is the option taking on the new
> behavior (and thus is affected by --delete), I think that the lines
> given by --itemize-changes should not indicate the creation of "old"
> directories.

I agree.

> In the meantime - is there a way to itemize only a particular type of
> change?  For example: files only, no dirs, or files with permission
> updates only, etc?

No, but you can run the itemize output through "grep" to select files
with the desired type and/or changes.

> The 'cp -al' method is what I'm currently doing as a workaround, but it
> adds a few extra lines to my script because I need to check if the
> destination connected to via ssh and then run the cp command over SSH
> (which is a different cp command than it normally would be because the
> ssh commands are relative to the users home directory...)

Note (if you haven't already) that you can do the "cp" in the
--rsync-path rather than in a separate ssh session.


More information about the rsync mailing list