3

Possible Duplicate:
Any way to sync directory structure when the files are already on both sides?

I'm looking for a backup utility that recognizes files or folders in the source that have just been renamed or moved. Using rsync I get a lot of duplicates, when ideally it would reflect those operations on the target (like Microsoft's SyncToy does).

Example:

Source:        Target:
~/done/a       ~/done/a
~/done/b       ~/todo/b
~/todo-123/c   ~/todo/c
~/todo-123/d   ~/todo/d
0
1

I'm not sure if I understand your question correctly, but pretty much any dedicated backup script on *nix should do this. Try rdiff-backup instead of manually rsync'ing, it should be able to deduce that files have been moved from the file dates.

2
  • 1
    I'm pretty sure rdiff-backup doesn't do this. Unison does. May 12 '20 at 14:40
  • Thanks for the correction, even if it's been a while ;-)
    – jstarek
    May 12 '20 at 20:26

Not the answer you're looking for? Browse other questions tagged or ask your own question.