You might test by using this: touch -r <filetocopytimesfrom> <filetosettimeon>
And see if that properly sets the 2nd file to have the same times as the first (-r file). If it works locally but not on nfs then the issue is either how the underlying disk that is nfs exported is mounted on the server, or the way the nfs export is done, and/or how the nfs disk is mounted on the client. On Sat, Dec 5, 2026 at 5:10 PM <[email protected]> wrote: > > On 5/12/26 18:40, [email protected] wrote: > > Maybe I need more sleep, but I cannot understand why the timestamps of > > copied files are set to 'now' rather than being copied from the source. > > The options I use are what I always used, but maybe I am using it wrong? > > [trimmed] > > > > > I will let the situation settle and check again much later. > > Left it alone overnight, timestamps are still wrong. > > Clarifying the situation: > The whole situation is run on a kvm client. The source (/data) is > local, the target (/data2) is nfs mounted from the host. > user/group IDs are identical. > When I run a similar command on the host the timestamps are preserved. > > I run this command as part of my backup. The problem started showing in > 20251001, earlier files have correct timestamp. > It seems that each backup (rsync) is setting the timestamp to the backup > time. Repeatedly. To all files starting with 20251001. > > -- > Eyal at Home ([email protected]) > -- > _______________________________________________ > users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/[email protected] > Do not reply to spam, report it: > https://forge.fedoraproject.org/infra/tickets/issues/new -- _______________________________________________ users mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
