Requesting information about the Music Assistant library.db.backup #6332
Replies: 2 comments 3 replies
|
library.db.backup is created automatically when Music Assistant performs a database schema migration. Before migrating library.db, MA copies the existing database to library.db.backup so it can be recovered if the migration fails. It is not temporary and it will not be removed automatically. It is replaced only when another database migration occurs. To remove it:
The relevant code confirms this behavior: during a schema-version change, MA copies library.db to library.db.backup before starting the migration. The backup is not subsequently cleaned up. |
|
To others reading this the Music Assistant team does not recommend or endorse the manual manipulation of any system files as mistakes can render your system inoperable. |
Uh oh!
There was an error while loading. Please reload this page.
Hi. I previously had an issue where my Home Assistant (HA) backups were growing by about 8–10 MB (compressed size) every day. The Music Assistant (MA) app was included in the HA backup.
I was quickly able to identify MA as the culprit. The library.db was growing significantly each day, which increased the backup size. Eventually, the database reached a size of around 590 MB.
I reset the database, and it is now 17 MB in size (uncompressed). So far, so good...
Unfortunately, the library.db.backup file from August 28, 2026 (the last state with the old database)—which is over 500 MB in size—is still there. I back up HA daily, and MA is always included in that process. Every backup I create still contains that library.db.backup file from August 28, 2026.
How can I remove this library.db.backup file? Or, to put it another way: do I even need to remove it? Will it disappear eventually? Might it get overwritten automatically at some point?
What causes it to be created in the first place? Can I force the creation of a new backup database?
Many thanks for your help!
All reactions