mirror of
https://github.com/octoleo/restic.git
synced 2024-11-01 03:12:31 +00:00
fe0361ffcb
For background on how this happened see https://forum.restic.net/t/psa-attention-anyone-not-using-a-recent-master-ie-0-9-5-version-restic-will-not-detect-changed-files-if-mtime-is-reset-by-the-application-eg-ms-excel-and-xls-xlsx-files-on-macos/1772/8?u=fd0
16 lines
819 B
Plaintext
16 lines
819 B
Plaintext
Enhancement: Use ctime when checking for file changes
|
|
|
|
Previously, restic only checked a file's mtime (along with other non-timestamp
|
|
metadata) to decide if a file has changed. This could cause restic to not notice
|
|
that a file has changed (and therefore continue to store the old version, as
|
|
opposed to the modified version) if something edits the file and then resets the
|
|
timestamp. Restic now also checks the ctime of files, so any modifications to a
|
|
file should be noticed, and the modified file will be backed up. The ctime check
|
|
will be disabled if the --ignore-inode flag was given.
|
|
|
|
If this change causes problems for you, please open an issue, and we can look in
|
|
to adding a seperate flag to disable just the ctime check.
|
|
|
|
https://github.com/restic/restic/issues/2179
|
|
https://github.com/restic/restic/pull/2212
|