jumpinjackie / mtg-collection-tracker

A management tool for your Magic: The Gathering card collection
MIT License
0 stars 0 forks source link

Auto-backup collection database #29

Open jumpinjackie opened 3 weeks ago

jumpinjackie commented 3 weeks ago

On app startup, check a designated backup folder for any backup on today's date (assumed yyyy-mm-dd-nn-collection-backup.sqlite). If no such file exists, copy the current collection.sqlite to this backup folder with this name.

To avoid bloat, maintain x rolling backups, where x is some value to be determined. Any time a new backup is created, delete any number of old copies to ensure the upper limit of x rolling backups