Say I have a large directory tree of large files on disc A. I backup that tree with rsync -a --delete /A /B. So far so good. Between backups there are some added files, some renamed ones, the usual.
Where it gets interesting is that A gets regularly reorganized: files move around (renamed, changed directories or both). So rsync ends up deleting files on B to copy them over again from A, and with large files through a network, that takes forever.
Is there some rsync option I could use ? I've re-read the option list and I couldn't find anything relevant, something to do with --size-only would be fine with me (low risk of collisions).
I think the solution is probably more to have a script look at file size + checksum and move files around on B before running rsync, but that's not too easy either. Ideas ?