Backups & migrations
Playify is completely portable. It doesn’t rely on complex external databases like PostgreSQL or Redis. Everything is stored locally.
If you are moving Playify to a new computer, a VPS, or a Docker container, you only need to copy two specific files to retain all your configurations, queues, and server states.
Important files to backup
Section titled “Important files to backup”-
data/playify_state.dbThis is a robust SQLite database. It contains:- The persistent controller channel and message IDs for every server.
- The current song queues and histories for all active players.
- Specific server settings (like allowlist channels or kawaii mode).
- If you lose this file, you will need to re-run
/setup controllerin all your servers.
-
data/settings.jsonThis JSON file stores your TUI dashboard settings, such as:- Your preferred Discord presence (e.g., “Playing /help”).
- The default volume.
- UI theme configurations.
-
.env(optional but recommended) Contains your Discord, Spotify, and Genius tokens. If you don’t copy this, you will simply have to re-enter them in the setup wizard on your new machine.
How to migrate
Section titled “How to migrate”- Stop the bot gracefully on your old server (press
Qin the TUI to ensure the SQLite database is closed cleanly and not corrupted). - Zip or copy the
data/folder and your.envfile. - Install Playify on your new server following the installation guide.
- Before running the
start.batorstart.shscript, paste thedata/folder and.envfile into the new Playify root directory. - Start the bot. It will instantly resume its previous state!