Hi lhere, i'm trying the detect-renamed patch in 2.6.7pre2 in a really small scenario. Having two dirs with some files rsyncing to destination. First I have no delete switches on, at least I will need them. Heres the command I use: rsync -e "ssh -i /root/.ssh/srv-key" -r -p -o -g -v -z -l -t --detect-renamed --stats /root/test/ srv:/root/test --progress (--fuzzy) When I rename a file in one dir it will completly transfered, until I make use of the --fuzzy switch, that will get it working. I had no luck in all my tries moving a file from the first to the parent or second dir, leaving the filename and then rsyncing without the need of a full transfer. Here --fuzzy will fail of course. I do not use --partial, but tried it also with giving a --partial-dir for the hard-links. At least I have to use some --delete option to keep the destination clean. Will --delete-before work due to hard-linking needed file for the --detect-renamed option? What's wrong? Thanks in advance, Daniel Laffien
On Wed, Mar 01, 2006 at 11:45:53PM +0000, d.laffien@ping.de wrote:> When I rename a file in one dir it will completly transferedThe way to notice if rsync made use of a renamed file is by looking at the matched data vs the literal data in the --stats output. Rsync will always output that it's creating the missing file, but it will do it using local (matched) data if it can. Some items to check: - Make sure that the renamed file is identical to a file in the new transfer. Without --checksum, it has to match in size and modify- time. With --checksum, it has to match in size and checksum. - Make sure that the renamed file is in the transfer hierarchy. Rsync will not search the whole filesystem looking for renamed files, just the directories that were specified in the transfer and any extra directories on the receiving side that are subdirectories of dirs in the transfer.> Will --delete-before work due to hard-linking needed file for the > --detect-renamed option?Yes, --detect-renamed works with all the --delete options (unlike --fuzzy, which only works with --delete-after). ..wayne..
Maybe Matching Threads
- remove-send-files, thanks and question
- [Bug 2294] Detect renamed files and handle by renaming instead of delete/re-send
- DO NOT REPLY [Bug 2294] Detect renamed files and handle by renaming instead of delete/re-send
- [Bug 2294] Detect renamed files and handle by renaming instead of delete/re-send
- Discussion about the detect-renamed patch