Restore PMM Server Podman container¶
Restore your PMM Server from a backup when you need to recover from an upgrade issue or data corruption, or when migrating to a different system.
Summary
- Stop the PMM Server service
- Update the PMM Server image reference to the backed-up version
- Import the backed-up data volume
- Start the PMM Server service
Important
You must have a backup to restore from. Restoration is only necessary if you experience issues with an upgrade or with your monitoring data.
To restore your PMM Server container:
-
Stop PMM Server:
systemctl --user stop pmm-server
-
Run PMM on the previous image, replacing
x.yy.z
with the specific version you were using when you created the backup. Using the same version ensures compatibility with your backup data.sed -i "s|PMM_IMAGE=.*|PMM_IMAGE=docker.io/percona/pmm-server:x.yy.z|g" %h/.config/systemd/user/pmm-server.env
-
Restore the volume:
podman volume import pmm-server pmm-server-backup.tar
-
Start PMM Server:
systemctl --user start pmm-server
sleep 30
timeout 60 podman wait --condition=running pmm-server
```