update only timestamps

Discuss new features and functions
Posts: 1
Joined: 9 Nov 2023

chameleon

This is a feature request.
If a file exist both in source and target _AND_ both files have the same size _AND_ their timestamp is different
THEN (2 extra modes)
update timestamp of newer file based to older file OR
update timestamp of older file based to newer file

Useful if your copied some files from source to target (or vice-versa) with some dumb method and target file did not get the timestamp from source file (this is not happening with FreeFileSync, File Copy, SFTP).

Useful if source and target filesystem not have the same behavior in timezone change or local time 1-hour change between summer and winter.

PS: Of course it is a little bit dangerous.
User avatar
Posts: 3603
Joined: 11 Jun 2019

xCSxXenon

This can be done with Robocopy:
https://serverfault.com/questions/970331/copy-sync-timestamps-only-of-already-copied-files-and-folders-in-windows

Also been discussed on this forum quite a bit. There are various scripts that you can have run post-sync
viewtopic.php?t=8905
viewtopic.php?t=9915