How to Preserve File Timestamps with Rsync on Linux
After copying files, timestamps changed. How do I preserve them? Try: rsync -a --preserve-times /source/ /destination/ Info: rsync -a (archive mode) preserves modification timestamps (-t), permissions, ownership, and symbolic links. Adding --preserve-times explicitly ensures file modification times remain unchanged during the transfer. Examples: $ cp --preserve=timestamps file1 file2 # Preserve […]
Read More