Back up your server
Keep a copy of everything Songstress knows, so you can put it back on any machine.
Everything Songstress keeps is in its data folder: the database with everyone's accounts, playlists, likes and
history, your settings, and its caches. Your music is in your own music folder, which Songstress doesn't back up.
Back that up as you always have.
What to keep
- The
datafolder. You can leave out its caches,data/transcode-cacheanddata/artwork-cache: Songstress makes them again. data/songstress-secret.key, or yourSONGSTRESS_SECRET_KEYif you set one. Without it, the saved sign-ins of people's connected accounts and extensions can't be read, and they connect again.compose.yamland.env.
Make a backup
-
Stop Songstress, so the database is still:
Terminal cd ~/songstress docker compose stop -
Copy what to keep:
Terminal tar czf ~/songstress-backup.tar.gz --exclude=data/transcode-cache --exclude=data/artwork-cache data compose.yaml .env -
Start it again:
docker compose start.
Put it back
- On the machine, put
compose.yaml,.envand thedatafolder in a folder for Songstress. - Check that
MUSIC_DIRin.envpoints at your music on this machine. - Run
docker compose up -d, with the same release you backed up, or a newer one.