Skip to content

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

Backup container

Summary
  • Stop and rename the pmm-server container.
  • Take a local copy of the pmm-server container’s /srv directory.

Important

Grafana plugins have been moved to the /srv directory 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:

docker exec -t pmm-server ls -l /var/lib/grafana/plugins

To back up the container:

  1. Stop the container:

    docker stop pmm-server
    
  2. Rename the image:

    docker rename pmm-server pmm-server-backup
    
  3. Create a subdirectory (e.g., pmm-data-backup) and change directory to it:

    mkdir pmm-data-backup && cd pmm-data-backup
    
  4. Back up the data:

    docker cp pmm-server-backup:/srv .