Restore
Using the custom backup container it is possible to restore:
the Elasticsearch indices
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):
docker compose stop snowowl elasticsearch ldap(re)move the contents of the old Elasticsearch data folder:
mv -t /tmp ./snow-owl/resources/indexes/nodesrestart the Elasticsearch container only (keep Snow Owl stopped):
docker compose start elasticsearchuse the backup container's terminal and execute the restore script:
without any parameters, if only the Elasticsearch indices have to be restored
root@host:/# docker exec -it backup bash root@ad36cfb0448c:/# /backup/restore.shwith parameter
-lin case the Elasticsearch indices and the OpenLDAP database have to be restored at the same time
root@host:/# docker exec -it backup bash root@ad36cfb0448c:/# /backup/restore.sh -lthe 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:
Last updated