Bug 8594 - Allow --link-dest argument to be a file
Summary: Allow --link-dest argument to be a file
Status: RESOLVED WONTFIX
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.9
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 05:05 UTC by Andrew Pimlott
Modified: 2020-07-26 07:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pimlott 2011-11-10 05:05:56 UTC
If I pass a file as --link-dest, rsync complains "--link-dest arg is not a dir".  But this makes perfect sense and would be useful:

  rsync -a --link-dest=prevfile srcfile dstfile

See also http://stackoverflow.com/questions/7100900/rsync-link-dest-option-for-single-file
Comment 1 Wayne Davison 2020-07-26 07:24:38 UTC
If you have just one file you can run the ln yourself.  Rsync needs the file in a dir using the same name for the link-dest option to work.