Performing backups

To perform a backing up of a Mayan EDMS installation, two things need to be backed up:

  1. Document files

    To backup the existing data, stop the image and copy the content of the volume. For the example, if you launched the container in this way:

    docker run -d --name mayan-edms --restart=always -p 80:8000 \
    -v /docker-volumes/mayan:/var/lib/mayan \
    -v /opt/scanned_files:/scanned_files mayanedms/mayanedms:s4
    

    that would be the /docker-volumes/mayan folder:

    sudo tar -zcvf backup.tar.gz /docker-volumes/mayan
    
  2. Database

    Use the database vendor’s respective backup procedures or utilities.

Restoring from a backup

  1. Document files

    Uncompress the backup archive in the original docker volume using:

    sudo tar -xvzf backup.tar.gz -C /
    
  2. Database

    Use the database vendor’s respective restore procedures or utilities.