Bug 8502 - problem to make snapshot with --link-dest without copy of the files
problem to make snapshot with --link-dest without copy of the files
Product: rsync
Classification: Unclassified
Component: core
All All
: P5 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
Depends on:
  Show dependency treegraph
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.