According to GNU tar manual:

Incremental dumps depend crucially on time stamps, so the results are unreliable if you modify a file's time stamps during dumping (e.g., with the `--atime-preserve=replace' option), or if you set the clock backwards.

The timestamps on my file is one hour off, due to daylight savings time on the portable device. Is it possible to force tar to use checksums?

(I'm thinking about using just about anything else because managing snapshot files seems very annoying and error-prone)

1 Answer 1


If you are using a filesystem type that stores timestamps in UTC or equivalent (like Unix timestamps for many Unix-like filesystems), then daylight savings time should not be a factor, as long as your system(s) has correct UTC time.

Unix timestamps are always internally processed in UTC, and the conversion for the local timezone (and DST if applicable) is applied only when displaying them.

When mounting FAT32 filesystems, you can use the time_offset=<number_of_minutes> mount option to specify the timezone used by that particular filesystem, if it is different from the system default timezone. (For example, if that filesystem comes from a portable device that has no clue about timezones or UTC.)

As far as I know, any version of tar I'm aware of supports checksums only within the structure of the .tar archive; they will not support adding/updating files into the archive based on the result of checksum comparision. If you need to check for file modification using checksums, my first thought would be to look at rsync and its many options. But it just copies files from A to B; it does not create nor maintain archive files.

  • My files were from NTFS drive on Windows, which always does DST differently than linux
    – qwr
    Jul 10, 2020 at 18:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .