ludusavi: Backup and restore does not record / recreate file modification times
Ludusavi version
v0.13.1
Operating system
Linux
Installation method
Other
Description
Factorio offers the option to continue the game with the last saved game. It identifies it by looking at the file modification. Ludusavi does not record the file modification time during backup and does not set it during restore and Factorio offers a seemingly randomly selected savegame to continue.
E.g. that means
$ cd Factorio
$ ls saves
...
-rw-r----- 1 MYUSER MYUSER 6176539 Sep 30 07:38 atomic 01.zip
-rw-r--r-- 1 MYUSER MYUSER 22911720 Sep 30 07:29 free 02.zip
...
$ ludusavi backup Factorio
$ ludusavi restore Factorio
$ ls saves
...
-rw-r----- 1 MYUSER MYUSER 6176539 Sep 30 07:39 atomic 01.zip
-rw-r--r-- 1 MYUSER MYUSER 22911720 Sep 30 07:39 free 02.zip
...
Logs
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (19 by maintainers)
Commits related to this issue
- Work on #132: added field mtime: SystemTime to ScannedFile and IndividualMappingFile — committed to sluedecke/ludusavi by sluedecke 2 years ago
- Work on #132: file mtime are saved to backup mapping.yaml and restored during restore — committed to sluedecke/ludusavi by sluedecke 2 years ago
- Work on #132: mtime field now is a chrono::DateTime<chrono::Local> — committed to sluedecke/ludusavi by sluedecke 2 years ago
- Work on #132: mtime now stored as UTC — committed to sluedecke/ludusavi by sluedecke 2 years ago
- Work on #132 - do not rely on stored timestamps, stamp backed up files instead . also moved file copy code to StrictPath::copy_to_path — committed to sluedecke/ludusavi by sluedecke 2 years ago
- Work on #132 - removed mtime attribut from ScannedFile and IndividualMappingFile — committed to sluedecke/ludusavi by sluedecke 2 years ago
- Work on #132: further cleanup in tests — committed to sluedecke/ludusavi by sluedecke 2 years ago
- Work on #132 - final cleanup of mtime field — committed to sluedecke/ludusavi by sluedecke 2 years ago
- #132 backup file times (#136) * Work on #132: added field mtime: SystemTime to ScannedFile and IndividualMappingFile * Work on #132: file mtime are saved to backup mapping.yaml and restored during... — committed to mtkennerly/ludusavi by sluedecke 2 years ago
- #132: Update changelog and do some refactoring — committed to mtkennerly/ludusavi by mtkennerly 2 years ago
Thanks for accepting my pull request!
This one let’s it run and generate a cache.yaml:
Thanks for the pointers to the code, I will give it a try.