Feature request
Add automatic creation of a .bak backup file for autosave.json before each save.
Problem
The autosave.json file can become corrupted in case of a crash, forced shutdown, or interruption during the save process.
In my case:
- the
autosave.json file was corrupted
- the project could no longer be loaded properly
- after manually fixing the file, a large part of the data was missing
- no backup was available to restore a previous version
Proposed solution
Before overwriting autosave.json, automatically create a backup:
Expected behavior
On each save:
- Rename the current
autosave.json → autosave.json.bak
- Write the new
autosave.json
Possible improvements (optional)
- Keep multiple backups (
autosave.json.bak1, .bak2, etc.)
- Add a safer auto-save system (write to a temp file, then replace)
- Display an error message if the save process fails
Why this is important
The autosave.json file contains the entire project. If it gets corrupted, it can lead to significant data loss.
A simple backup system would help prevent this issue.
Thank you for your work!
Feature request
Add automatic creation of a
.bakbackup file forautosave.jsonbefore each save.Problem
The
autosave.jsonfile can become corrupted in case of a crash, forced shutdown, or interruption during the save process.In my case:
autosave.jsonfile was corruptedProposed solution
Before overwriting
autosave.json, automatically create a backup:autosave.json.bakExpected behavior
On each save:
autosave.json→autosave.json.bakautosave.jsonPossible improvements (optional)
autosave.json.bak1,.bak2, etc.)Why this is important
The
autosave.jsonfile contains the entire project. If it gets corrupted, it can lead to significant data loss.A simple backup system would help prevent this issue.
Thank you for your work!