[Bug 8336] --implied-dirs should include the file-list root by default

samba-bugs at samba.org samba-bugs at samba.org
Mon Aug 8 09:20:39 MDT 2011


https://bugzilla.samba.org/show_bug.cgi?id=8336

--- Comment #10 from Wayne Davison <wayned at samba.org> 2011-08-08 15:20:39 UTC ---
./file2 dest.(In reply to comment #5)
> The created /a/sourcedir structure on the receiver side
> [...] it wont work on "a"

There is no created "a" on the receiver side in your examples, since "a" is
outside of the transfer and not the top-most directory in the destination path.
 That directory has to pre-exist, and you can create it however you wish.  Or,
you could choose to put "a" in the transfer by omitting the /./ elements from
the source path, in which case the link-dest dir would also need those path
elements or a symlink on a subpath of the omitted dirs that points to the root
of the link-dest hierarchy (which would be best put into a separate directory
to avoid any conflict with arriving directories).  e.g.

Either this:

mkdir -p /a/refdir2/a
mv /a/refdir /a/refdir2/a/sourcedir
mv /a/refdir2 /a/refdir
LDEST=/a/refdir

Or this:

mkdir -p /linkdest/a
ln -s /a/refdir /linkdest/a/sourcedir
LDEST=/linkdest

And run:

rsync -avR --link-dest=$LDEST /a/sourcedir/dirtree/to/transfer <ip>::module/

As for a new flag, that would be equivalent to just adding ./ to the source
path, which is what we have now.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the rsync mailing list