Skip to content

Updating and backups

Read the release notes first, take a backup, then:

Terminal window
git pull # compose.yaml and .env.example, for what's new in them
docker compose pull # the newest image
docker compose up -d

With PLEKSTENDER_PULL_POLICY=always in .env, docker compose up -d gets the newest image by itself.

The database is migrated when the app starts. Settings → About shows the version you’re running and can check for a newer one.

Back up regularly, and before every update:

  • The database (ratings, history, playlists, settings), with the stack running:

    Terminal window
    docker compose exec -T db sh -c 'pg_dump -U "$POSTGRES_USER" -Fc "$POSTGRES_DB"' > plekstender.dump

    To restore it, stop the app (docker compose stop frontend worker), then run docker compose exec -T db sh -c 'pg_restore -U "$POSTGRES_USER" -d "$POSTGRES_DB" --clean --if-exists' < plekstender.dump and start it again.

  • The data volume (fonts, uploads, logo packs, previews, video covers):

    Terminal window
    docker run --rm -v plekstender_data:/data:ro -v "$PWD":/backup alpine tar czf /backup/plekstender-data.tgz -C /data .
  • Your music files, if you’ve let Plekstender change them. Every change can be undone from Tag history, but that isn’t a backup.