rsync icon indicating copy to clipboard operation
rsync copied to clipboard

duplicate filename different file hardlink (snapshot)

Open dieterferdinand opened this issue 1 year ago • 0 comments

hello, i use rsync to backup my data und today i have a big problem:

  1. i have a dir with some files and move the dir to an other place
  2. i recreate the original dir and copy files with the some names as the old dir in it, but different content
  3. i have some snapshots of the old dir on the backup-disk
  4. i start backup and rsync copy first all files from the new dir and then the same files from the old dir, so i have only a copy from the old dir, but not from the new dir because rsync don't cut the hardlinks. i use the inplace and no-inc-recursive options because in this case, i must copy much big files. rsync also knows, that at this place are different files with different inodes, but it ignores that!
  5. to solve the problem, i rename the new dir, runs rsync, copy the new renamed dir with cp -avl to the old name and runs rsync again.

why makes rsync such problems, if a file is replaced and a hardlink exists in an other directory?

goodby

dieterferdinand avatar Oct 10 '23 15:10 dieterferdinand