Backup podman container¶
Summary
- Stop PMM Server.
- Backup the data.
Important
Grafana plugins have been moved to the data volume /srv since the 2.23.0 version. So if you are upgrading PMM from any version before 2.23.0 and have installed additional plugins then plugins should be installed again after the upgrade.
To check used grafana plugins: podman exec -it pmm-server ls /var/lib/grafana/plugins
To back up your container:
-
Stop PMM Server.
systemctl --user stop pmm-server -
Backup the data.
podman wait --condition=stopped pmm-server || true sleep 30podman volume export pmm-server --output pmm-server-backup.tarImportant
If you changed the default name to
PMM_VOLUME_NAMEenvironment variable, use that name afterexportinstead ofpmm-server(which is the default volume name).