rsync
rsync copied to clipboard
duplicate filename different file hardlink (snapshot)
hello, i use rsync to backup my data und today i have a big problem:
- i have a dir with some files and move the dir to an other place
- i recreate the original dir and copy files with the some names as the old dir in it, but different content
- i have some snapshots of the old dir on the backup-disk
- 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!
- 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