I would like to duplicate a folder structure containing many directories and files using hard links for all the files instead of making new copies of the files. I thought I could do this with rsync
, but the -H
option that I thought did this only preserves existing hard links.
The folder trees I want to do this with are in the same parent directory on the same volume.
Then I thought --link-dest
might do it:
rsync -avh --stats --link-dest=Fold1/ Fold1 Fold2/
But that just copies the files in Fold1
to Fold2