Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).


Source:        Target:
~/done/a       ~/done/a
~/done/b       ~/todo/b
~/todo-123/c   ~/todo/c
~/todo-123/d   ~/todo/d
share|improve this question

migrated from superuser.com Dec 5 '11 at 15:16

This question came from our site for computer enthusiasts and power users.

marked as duplicate by Gilles, Michael Mrozek Dec 5 '11 at 21:19

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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.

share|improve this answer

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