Docker upgrade and backup
Keep the original Compose settings, data volumes, media mounts, and application configuration before upgrading. Removing a container may leave volumes intact, but deleting a data volume removes accounts, records, and settings.
Backup
- Record the image version, Compose file, and mount directories.
- Stop the Drama container.
- Back up the complete application data and controlled deployment settings.
- Back up original videos, NFO files, and local posters separately.
- Store the backup on another device with restricted access.
The data may contain accounts, sessions, and licensing information. Protect it like a password. Never upload it to a public repository or send it to another person.
Upgrade
Recreate the container while keeping the original service name, ports, data volumes, and media mounts. Do not use docker compose down -v as a normal upgrade step. Check the web version, administrator sign-in, library, watch history, license, and actual playback afterwards.
Restore
Stop the service and restore one complete backup with a compatible image. Never let two containers write the same data directory. Before replacing newer data, save the current state and confirm which orders or watch records should be retained.
Verify a backup
Start the restored copy in isolation and check accounts, favorites, history, library counts, and playback. A copy that has not passed a restore rehearsal is not a verified backup.