Repository navigation
Conversation
|
Could you cover restoring the same snapshot twice into the same Windows destination? The new test checks the first restore into an empty directory. On the second restore, the destination file is already read-only because the first restore made it so. Rustic reapplies timestamps even to unchanged files, and the Windows timestamp helper opens the file for writing. With I’d extend the regression to run the restore twice without clearing the destination or resetting permissions between runs, then check the contents, timestamp, and read-only attribute. Golem clears its destination before each restore, so this is a fork issue rather than a failure of the Golem caller. While touching this, please also update the option docs, which still say Windows restores only timestamps. |
|
There’s a second in-place restore case beyond the repeat-snapshot timestamp failure: restoring changed contents over a file the first restore marked read-only. If snapshot A contains a read-only file and snapshot B contains a writable version of a different length, Rustic restores contents before metadata. Please cover both paths before merge. On Windows, restore A twice with strict metadata handling, then restore B into the same destination, without manually resetting permissions. Check the bytes, modification time, and read-only attribute after each restore. The B step distinguishes a fix for content replacement from one that only fixes timestamp access. I traced this on the PR head. Both fork restore integration tests passed on Linux; I did not run the scenario on native Windows. |
|
Fixed in a7001da. |
1 similar comment
|
Fixed in a7001da. |
test_restore_preserves_readonly_files_and_nested_directory_timesreproduced the second-A timestamp failure before the fix and passed the committed A→A→B sequence after it. Linux restore and hard-link controls also ran. This is fork integration coverage, not a Golem release build or application smoke test.