[Bug 13321] Rsync --copy-dest issue

samba-bugs at samba.org samba-bugs at samba.org
Thu Mar 8 08:51:22 UTC 2018


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

--- Comment #2 from Dave Gordon <dg32768 at zoho.eu> ---
Looks right :)

Another way to say it would be using a relative path:

$ rsync -rlDi -z -t --no-h --out-format="%t %i %n %L" --stats
--chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r --delay-updates --partial --delete-after
--force --ignore-errors --copy-dest=../cache/data/ /data/data/
root at l-rel-dnl.urg.avp.ru:/data/data/

Here I've used trailing slashes on source and destination paths, implying that
we transfer the *contents* of the source directory (rather than the directory
itself) into the destination directory; and a relative path for the
--copy-dest, so you can see how it's evaluated relative to the root of the
transfer on the destination server.

.Dave.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.



More information about the rsync mailing list