PicInch Gallery provides a simple way for a group of members, such as a photography club, to display their photographs.
PicInch uses the following files and directories, under /srv/picinch
:
certs
Let’s Encrypt certificates. Backup not required.geodb
Geo database. Backup not required.misc
Serves files placed there. Backup the originals.mysql
The live database. Not suitable for backup.photos
Users’s photos. Backup required.site
Site configuration. Backup whenever changes are made.docker-compose.yml
Backup whenever changes are made (or keep parameters in site/configuration.yml
if preferred).There is no inbuilt support for backups. Some VM hosts offer a periodic backup of the whole server.
For a manual backup:
docker exec picinch_db /usr/bin/mysqldump -uroot -<root-password> picinch > backup.sql
/srv/picinch/photos
to the backup system.To restore from backup:
docker exec -i picinch_db /usr/bin/mysql -u root -<root-password> picinch < backup.sql
/srv/picinch/photos
from backup.