KnobKraft backup strategy #68
Unanswered
christofmuc
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The question came up - KnobKraft seems to create crazy amounts of backups in the Database folder, how can I clean it up?
Answer: As of version 1.10.x, there is a hardcoded back up and back up cleanup strategy.
Backups - are done for the current database every time KnobKraft is closed, in the same directory as the database file itself, with a postfix -backup(number).
The rule for the database backup files currently is - delete old backups until there are either only 3 backups left or the total size of the backups is less than 500 MByte.
Note the 500 MByte limit is for each database. So e.g. if you have 3 different databases for 3 different setups (whyever), the total size of the backups will be 1500 MByte.
Additional backups are created on database migration (only happens when the database schema is changed due to new version's features). Those migration backups are never deleted automatically, as you might need them for using the old KnobKraft version.
I am sure this is going into the preferences soon, but this is state as of v1.10.x.
The respective code can be found here:
https://github.com/christofmuc/MidiKraft-database/blob/master/PatchDatabase.cpp
function "manageBackupDiskspace".
Beta Was this translation helpful? Give feedback.
All reactions