@@ -30,6 +30,22 @@ We at OPL use `docker-compose` both for provisioning our development machines as
...
@@ -30,6 +30,22 @@ We at OPL use `docker-compose` both for provisioning our development machines as
### Backup & restore
### Backup & restore
There are two databases that are vital for the systems integrity. They contain the "source of truth" for the state in the system: *MySQL* holds all the patrons, items and ciruclation data, and *Fuseki* is master for the knowledge graph representing the catalog and related metadata. Needless to say, backups of those should be performed regularly and stored in a safe place.
All databases in the system use docker volumes to persist data.
#### MySQL
Normally, we take backups by simply copying the datavolume, but in the case of MySQL, we found there is a risk of getting a corrupted backup, probably due to the large number of writes happening at any time. So to get a safe snapshot of the data use mysqldump: