picinch

Logo

PicInch Gallery provides a simple way for a group of members, such as a photography club, to display their photographs.

Home

Installation and Setup

Updates

Docker Repository

View the Project on GitHub inchworks/picinch

Step 8: Backups

PicInch uses the following files and directories, under /srv/picinch:

There is no inbuilt support for backups. Some VM hosts offer a periodic backup of the whole server.

For a manual backup:

  1. Stop PicInch using Docker Compose.
  2. Export the database: docker exec picinch_db /usr/bin/mysqldump -uroot -<root-password> picinch > backup.sql
  3. Copy the resulting backup.sql file to a backup system.
  4. Copy /srv/picinch/photos to the backup system.
  5. Restart PicInch.

To restore from backup:

  1. Install PicInch if necessary, or stop the service.
  2. Import a database backup: docker exec -i picinch_db /usr/bin/mysql -u root -<root-password> picinch < backup.sql
  3. Restore /srv/picinch/photos from backup.
  4. Restart PicInch.