1.5 KiB
1.5 KiB
Backup And Restore
The minimum persistent state for this project is:
data/app.dbdata/artwork/- your music library mount, if the server machine is the primary storage location
What To Back Up
Recommended:
- entire
data/directory - entire
media/directory if the same host stores the original files - your
.envor deployment environment settings
Why:
app.dbstores users, sessions, playlists, favorites, and scanned metadataartwork/stores extracted embedded coversmedia/contains the source files used to rebuild the library index
Simple Backup Example
PowerShell:
$stamp = Get-Date -Format 'yyyyMMdd-HHmmss'
New-Item -ItemType Directory -Force -Path ".\\backups\\$stamp" | Out-Null
Copy-Item -Recurse -Force .\\data ".\\backups\\$stamp\\data"
Copy-Item -Recurse -Force .\\media ".\\backups\\$stamp\\media"
Restore Example
- Stop the server.
- Restore
data/from backup. - Restore
media/if needed. - Start the server again.
PowerShell:
Copy-Item -Recurse -Force ".\\backups\\20260403-010000\\data\\*" ".\\data"
Copy-Item -Recurse -Force ".\\backups\\20260403-010000\\media\\*" ".\\media"
Notes
- If
media/is already backed up elsewhere, restoringdata/app.dbanddata/artwork/is usually enough. - If
artwork/is lost butmedia/is intact, the server can rebuild extracted covers during future scans. - If
app.dbis lost, the library can be rescanned frommedia/, but playlists, favorites, sessions, and users will be lost unless restored from backup.