File dates such as date created not always restored
Output of restic version
restic 0.18.1 compiled with go1.25.1 on windows/amd64
What backend/service did you use to store the repository?
External storage using Zerobyte and Backrest
Problem description / Steps to reproduce
When restoring files and folders, i see that date created and modified not being the original date created. If I use Zerobyte on unraid to back up and restore, I see the date and times are preserved. But only with a 1 second difference. However, if I then use Backrest on Windows to restore the same backup. I should get the original date created and modified. But instead I see the current date for date created. Not the original date created of the backed up file. What is strange is that if I use Backrest on Windows to do a backup and restore, then the dates created are also preserved. So why is it that restic seams to selectively preserve dates on files?
Expected behaviour
When restoring files, the original dates created and modified as well as access should also be restored.
Actual behaviour
The current date is set for date created, and does not use the original date created.
Do you have any idea what may have caused this?
No
Did restic help you today? Did it make you happy in any way?
Restic is so far the only backup program that does seam to attempt and in some cases does have the ability to restore date created, which many backup programs often do not feature or have not considered adding.
Source: restic/restic