[Bug 12835] New: Allow --link-dest to link to an optionally unexisting directory
samba-bugs at samba.org
samba-bugs at samba.org
Mon Jun 12 10:07:17 UTC 2017
https://bugzilla.samba.org/show_bug.cgi?id=12835
Bug ID: 12835
Summary: Allow --link-dest to link to an optionally unexisting
directory
Product: rsync
Version: 3.1.3
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: julien+bugzilla-samba at palard.fr
QA Contact: rsync-qa at samba.org
Found myself trying to hardlink between versions, but as I may rsync to a new
server I may not having an old version to point to, so I had to use:
rsync -rl --link-dest=$(ssh prod "cd /var/www; readlink -e current || echo
.") static index.html prod:/var/www/$CI_COMMIT_SHA/
ssh prod "ln -nfs $CI_COMMIT_SHA" current
Which is ugly.
I'd prefer something like:
rsync -rl --link-dest=current static index.html prod:/var/www/$CI_COMMIT_SHA/
ssh prod "ln -nfs $CI_COMMIT_SHA" current
But warning / erroring on missing --link-dest sound legitimate, and we may not
want to change this. If not, why not introduce a --link-dest-if-exists? Or a
--ignore-missing-link-dest (in combination with the normal --link-dest)?
--
You are receiving this mail because:
You are the QA Contact for the bug.
More information about the rsync
mailing list