ianGB Posted November 4, 2021 Share Posted November 4, 2021 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? Quote Link to comment
JorgeB Posted November 4, 2021 Share Posted November 4, 2021 It should always resume from where is was, unless the source/dest files modified timestamp changed. Quote Link to comment
ianGB Posted November 4, 2021 Author Share Posted November 4, 2021 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. Quote Link to comment
JorgeB Posted November 4, 2021 Share Posted November 4, 2021 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. Quote Link to comment
ianGB Posted November 5, 2021 Author Share Posted November 5, 2021 Thanks I had forgotten about that! Almost all of my rsync usage is via bash scripts which do indeed include this flag. Quote Link to comment
Recommended Posts
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.