Skip to content

For help, click the link below to get free database assistance or contact our experts for personalized support.

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:

  1. Stop PMM Server:

    systemctl --user stop pmm-server
    
  2. 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
    
  3. Restore the volume:

    podman volume import pmm-server pmm-server-backup.tar
    
  4. Start PMM Server:

    systemctl --user start pmm-server