https://bugzilla.samba.org/show_bug.cgi?id=13321
Bug ID: 13321
Summary: Rsync --copy-dest issue
Product: rsync
Version: 3.1.3
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: Anatoly.Penkov at kaspersky.com
QA Contact: rsync-qa at samba.org
Please help me to clarify my situation.
Remote (destination) server has a directory /data/data/ and includes 5 OLD
files: data/apu1.part1.rar data/apu1.part2.rar data/apu1.part3.rar
data/apu1.part4.rar data/apu1.part5.rar
Remote (destination) server has a directory /data/cache/data and includes 5 NEW
files: /data/cache/data/apu1.part1.rar /data/cache/data/apu1.part2.rar
/data/cache/data/apu1.part3.rar /data/cache/data/apu1.part4.rar
/data/cache/data/apu1.part5.rar
Local (source) host includes 5 NEW files with the same names:
data/apu1.part1.rar data/apu1.part2.rar data/apu1.part3.rar data/apu1.part4.rar
data/apu1.part5.rar
I try to use Rsync with -copy--dest option not to transfer all NEW files but to
use them from /data/cache/data directory. Unfortunately I have no success. New
files can be used from /data/cache/data ONLY if I transfer files to the new
empty directory. Could someone help to make it working? I hope there is some
needed key or option. Thanks in advance.
Transfer log https://pastebin.com/Zm8GBAEM
--
You are receiving this mail because:
You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=13321 --- Comment #1 from Anatoly Penkov <Anatoly.Penkov at kaspersky.com> --- rsync -rlDi -z -t --no-h --out-format="%t %i %n %L" --copy-dest=/data/cache --stats --chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r --delay-updates --partial --delete-after --force --ignore-errors /data/data root at l-rel-dnl.urg.avp.ru:/data -- You are receiving this mail because: You are the QA Contact for the bug.
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.
https://bugzilla.samba.org/show_bug.cgi?id=13321
Wayne Davison <wayne at opencoder.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|NEW |RESOLVED
--
You are receiving this mail because:
You are the QA Contact for the bug.