TagStudioDev / TagStudio

A User-Focused Photo & File Management System
https://docs.tagstud.io/
GNU General Public License v3.0
5.09k stars 367 forks source link

[Feature Request]: Automatic Periodic Library Backups #439

Open CyanVoxel opened 1 month ago

CyanVoxel commented 1 month ago

Checklist

Description

Currently, backups have to be saved manually which introduces an extra step for the user to remember. If the user forgets to save a backup, then the backup feature can't help them.

Solution

Periodically (every few minutes, and/or triggered on saving) TagStudio could trigger the "Save Library Backup" feature to keep around automatic backups. Ideally, these could be combined with a "Load Library Backup" feature that sets it as the main ts_library.json/sqlite file while keeping the current save file as an additional backup.

There would probably need to be some options for setting how often backups are made if at all, and either a cutoff for how many backups are allowed to be made automatically before older backups get deleted (this would need to be approached very carefully, too).

Alternatives

Autosaving could potentially help, but this will be made obsolete by #332.

Cool-Game-Gev commented 1 week ago

@CyanVoxel do we have any updates on this?

CyanVoxel commented 1 week ago

@CyanVoxel do we have any updates on this?

No, I opened up this feature request but I have not been the one developing the feature. Also my focus has been on higher priority library systems since #332 was merged.

Cool-Game-Gev commented 1 week ago

@CyanVoxel Thanks!