Skip to content

Backup container

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

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:

docker exec -it pmm-server ls /var/lib/grafana/plugins

To backup container:

  1. Stop the container.

    docker stop pmm-server
    
  2. Move the image.

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

    mkdir pmm-data-backup && cd pmm-data-backup
    
  4. Backup the data.

    docker cp pmm-data:/srv .
    

Get expert help

If you need assistance, you can find comprehensive and free database knowledge on our community forum or blog posts. For professional support and services, contact our Percona Database Experts.


Last update: 2024-02-19