Hacker News new | ask | show | jobs
by m463 979 days ago
wonder if copying preserving timestamp is possible? best of both worlds?
1 comments

Posix systems, at least, allow a file's timestamps to be set with utime(2) and related system calls, but a problem with this is that utime with an arbitrary time is not permitted in all situations where writing to a file is possible. Backing up those files would either need a separate strategy or have inconsistent behavior.