| id | downgrade |
|---|---|
| slug | /downgrade |
| title | Downgrade |
| description | How to install an older Maintainerr version using a database backup. |
If you need to run an older Maintainerr version, you must use a database backup from before you upgraded.
:::note Notice
These instructions are a general guide. The most important part is restoring your backed up SQLite database into the mapped /opt/data directory on the host, outside the container.
You also need to pin the container image to the version you want to run in Docker Compose or your docker run command.
:::
- It is strongly recommended to back up your
maintainerr.sqlitefile regularly. There is a backup button inSettings -> General, or you can automate backups with your own script. - Use a backup taken before the upgrade.
- Downgrading between unrelated versions is not officially supported. It may still work, but you should expect some risk.
Set your image to the version you want, for example:
image: ghcr.io/maintainerr/maintainerr:2.10.0or:
image: maintainerr/maintainerr:2.10.0Stop the running container before replacing the database file.
docker stop maintainerrYour data lives in /opt/data inside the container (your host bind/volume target).
- Open the host data directory that is mapped to
/opt/data. - Find the current Maintainerr SQLite database file.
- Replace it with the backed up copy from before the upgrade. Use a copy of the file and not the original.
- Make sure file ownership/permissions are still correct for your container user (commonly
1000:1000).
docker compose pull
docker compose up -ddocker pull ghcr.io/maintainerr/maintainerr:2.10.0Then run your normal docker run ... command again with the same /opt/data volume mapping, but using the pinned older image tag.
- Open the UI and verify your rules/settings are present.
- Check logs for startup or database errors.
- Run a manual rule test to confirm expected behavior.