I have been trying to figure out how to resume partial transfers in rsync (on Windows, using cygwin) without using the --inplace
option.
I see that rsync creates "partial" files in the destination directory with names like .[filename].2dxZ1a, and so, in my understanding, if I used the --partial
option, rsync would see a file like this and resume the transfer to this file. But, I'm finding that if I use the --partial
option and the rsync process ends, then when I start the rsync command again, it deletes those partial files. Perhaps this option on works on a brief transfer interruption, but not when the process ends and starts over.
In addition to this option, I actually liked the --partial-dir
option, expecting that if I specifiy --partial-dir=".rsync"
(with or without the surrounding quotes), rsync would create the directory .rsync in the destination directory and transfer the files to [dir]/.rsync, moving them to [dir] once the transfer finished (and deleting [dir]/.rsync once it no longer needed it). But, it seems like rsync is completely ignoring that option and just creating its temporary files in the destination directory like normal (and deleting them on re-start).
So, I'm wondering: am I doing something wrong or do I just not understand those options correctly?
My command is: rsync -rt --log-file="rsync.log" --partial-dir=".rsync" --del rsync://rsync-server:port/module/ /cygdrive/local/path/