Upgrading¶
Procedure for upgrading OpsDeck to a new version.
Version compatibility¶
OpsDeck follows semantic versioning. Database migrations handle schema changes between versions. Always read the Changelog before upgrading to understand breaking changes.
Upgrade procedure¶
1. Backup¶
Always back up before upgrading:
# Database
docker-compose exec -T db pg_dump -U opsdeck opsdeck | gzip > backup_pre_upgrade.sql.gz
# Attachments
tar -czf attachments_pre_upgrade.tar.gz ./data/attachments
2. Pull new version¶
3. Run migrations¶
4. Restart¶
5. Verify¶
- Check application logs for migration errors.
- Verify the dashboard loads correctly.
- Confirm the version number in the UI footer.
Dependency updates¶
Python and JavaScript dependencies are updated periodically:
Both scripts update dependencies and run tests to verify compatibility.
Rollback plan¶
If the upgrade fails:
- Stop the application.
- Restore the database from backup.
- Restore attachments from backup.
- Roll back to the previous version (Docker image tag or git checkout).
- Restart.