Bug 8502 - problem to make snapshot with --link-dest without copy of the files
Summary: problem to make snapshot with --link-dest without copy of the files
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.9
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
Depends on:
Reported: 2011-09-29 14:10 UTC by Dieter Ferdinand
Modified: 2011-09-29 15:43 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Dieter Ferdinand 2011-09-29 14:10:04 UTC
i have tried to make a snapshot with the following command-line:
rsync -lHrtDpvP --link-dest=daten/ daten/ snap1/

but some files are copied instad of making hardlinks to the files and i don't know why!

the link-dest-dir is the same as the source dir, so it gives no difference between the source file and the link-dest-file!

why does rsync then copy some files and don't make hardlinks to it ???

Comment 1 Wayne Davison 2011-09-29 15:43:36 UTC
The link-dest dir in your command is NOT the same as the source dir, it is a subdir of the destination dir (which presumably doesn't exist).  You probably meant to use --link-dest=../daten (or an absolute path to the source dir).

See the man page for how the link-dest dir is relative to the destination path unless absolute.