Am 21. Oktober 2023 07:07:18 UTC schrieb Dale <[email protected]>:
>Actually, I was looking at the man page again and that option appeared
>to me just a little bit ago. I tried it and it did several updates.
>Question tho. It finished that update just a minute ago. I tried again
>with my usual command, it wants to update everything again. I seem to
>recall that rsync goes by file size and modify time stamps. Is there a
>way to make the NAS box files newer or something so that it will not try
>to copy the same files over again? I'd like to use the default
>detection options of rsync if I can just in case something changes.
>
We are creatures of habit eh :-)
Of course you have to specify this option every time as the timestamps remain
the same in this case.
Why not? First of all it's just video files. What are the odds that the
contents of change and the file size will be exactly the same?
Using the defaults is fine but you should use the options which serve the
purpose.
If you want you can use find on the backup drive in combination with exec to
run the touch command on each file in order to update the timestamps. Then the
-u option you use with rsync wont update the file on the destination because it
is newer then the source. However in the end the result is the same as if using
"--size-only".
Don't nail me on this but the command could look like the following: find
pathtobackup -type f -exec touch '{}' +
--
Best regards
Daniel