I use a static website generator that generates all the files in the website on each run. After generating the files, I use rsync to copy the content in place.
To allow better caching, I'd like rsync to not modify the timestamp of those files in the destination that have not changed. Is it possible?
EDIT: To make it clear, timestamps of all the source files are always newer than the timestamps of the destination files.
The -c
option seems to do what I want. The performance penalty is not an issue in my case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With