I have a folder (many files and subfolders, a few hundred gigabytes). I duplicated the folder with rsync, but forgot to preserve the timestamps.
The new folder has now had many new files added to it and existing files modified.
I need to copy across the timestamps of the old folder to the new folder, but only if the files haven't been modified after Jul 9 2021.
I don't think rsync will do it.
I think I'll have to use touch -t
, but need an efficient way to process all the files.
Is there a better way? Or, how can I process all the files and update the timestamps if the files haven't been modified since Jul 9.
Thanks.
rsync
or use some of the other techniques to update the timestamp. – BowlOfRed Jan 20 '22 at 16:26