November 4, 20214 yr I am copying some files from my old server to my UNRAID server using rsync. The command I am using is: rsync -av --progress /mnt/md127/GoPro/ [email protected]:/mnt/user/GoPro/ There are a lot of files and at some point in the night the connection dropped. Starting the command again this morning I expected rsync to quickly go past all the files already synced and carry on from where the connection dropped. However, rsync seems to be syncing all the files again. I use rsync on other computers frequently and have not come across this problem before. Can anyone suggest why this might be happening?
November 4, 20214 yr Community Expert It should always resume from where is was, unless the source/dest files modified timestamp changed.
November 4, 20214 yr Author Yes, but I haven't done anything to change the timestamps. Also even if the timestamp is changed, but the content isn't rsync will just move on to the next file. In my case I haven't changed the content, but rsync is still uploading the full file from the source and overwriting the destination file.
November 4, 20214 yr Community Expert 2 minutes ago, ianGB said: Also even if the timestamp is changed, but the content isn't rsync will just move on to the next file Not unless you use the --ignore-times flag, then it will only compare sizes, by default rsync doesn't compare contents.
November 5, 20214 yr Author Thanks I had forgotten about that! Almost all of my rsync usage is via bash scripts which do indeed include this flag.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.