Restore
Using the custom backup container it is possible to restore:
the Elasticsearch indices
the Bugzilla database
the OpenLDAP database (if present)
To restore any of the data the following steps have to be performed:
stop Snow Owl, Elasticsearch, and the OpenLDAP containers (in the folder
./snow-owl/docker
):
(re)move the contents of the old / corrupted Elasticsearch data folder:
restart the Elasticsearch container only (keep Snow Owl stopped):
use the backup container's terminal and execute the restore script:
without any parameters, if only the Elasticsearch indices have to be restored
with parameter
-l
in case the Elasticsearch indices and the OpenLDAP database have to be restored at the same time
with parameter
-b
in case the Elasticsearch indices and the Bugzilla database have to be restored at the same time
with parameter
-b
and-l
if a full restore has to be performed
the script will list all available backups and prompts for selection:
enter the numerical identifier of the backup to restore and wait until the process finishes
exit the backup container and restart all containers:
In case only the contents of the OpenLDAP server has to be restored, it is sufficient to just extract the contents of the backup archive to ./snow-owl/ldap
and restart the container.
Last updated