Examine file ctime when checking if files have changed.

This commit is contained in:
Courtney Bane
2019-03-19 20:27:37 -05:00
parent ecc2458de8
commit b8c2544dcb
7 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
Bugfix: Use ctime when checking for file changes
Previously, restic only checked a file's mtime (along with other non-timestamp
data) to decide if a file has changed. This could cause it to not notice changes
if something edits a file and then resets the timestamp. Restic now also checks
the ctime, so any modification to a file should be noticed.
https://github.com/restic/restic/issues/2179