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: way...@samba.org Reporter: julien+bugzilla-sa...@palard.fr QA Contact: rsync...@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. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html