changing lots of file dates?

Lily White lilywhite2005 at outlook.com
Fri Jul 29 06:48:18 UTC 2022


Is ``way in the past'' the UNIX epoch (Jan 1, 1970)?

If so, maybe dates were lost already at the making of the backup.

On 7/28/22 8:57 AM, rikona wrote:
> I had to do a restore of lots of data files back a bit, from a backup
> disk. That did restore the files, but for some reason the 'modified'
> date for all these files got set to a date way in the past - way earlier
> than the 'create' date. May be 100K files or so. That backup no longer
> exists, so I can't 'redo' the restore to fix the problem.
> 
> Is there a way to SAFELY reset all these on the disk using the
> following conditions:
> (1) if the modified date is earlier than the create date, set the mod
> date to the create date.
> (2) if the modified date is later than or = to the
> create date, do not change the mod date.
> (3) do not change any other date, and don't make the mod or access date
> the date when this was done.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xEE978FA44869B163.asc
Type: application/pgp-keys
Size: 3155 bytes
Desc: OpenPGP public key
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220729/22628c15/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220729/22628c15/attachment.sig>


More information about the ubuntu-users mailing list