Hello, I am using rsync to do daily backups on another filesystem. Whenever a folder has been renamed or moved on the source, rsync will delete all the recursive files on the destination filesystem, and then recopy them to the newly named/moved folder. This can take a long time. Is there a way to get rsync to simply re-link the files instead? It looked like maybe the -H option might, but I am not really sure how that works. Also, it says that using this option would tend to take longer. -- View this message in context: nabble.com/rsync-re-link-instead-of-delete-copy--tf2286519.html#a6351247 Sent from the Samba - rsync forum at Nabble.com.
On 9/17/06, Allasso <kevinhj@imap.cc> wrote:> Whenever a folder has been renamed or moved on the source, rsync will delete > all the recursive files on the destination filesystem, and then recopy them > to the newly named/moved folder. This can take a long time. > > Is there a way to get rsync to simply re-link the files instead?I think the --detect-renamed option provided by the experimental patch detect-renamed.diff does what you want, although it might have a performance penalty. To test the option, you will need to compile your own copy of rsync from source after applying the patch. Matt