Add example backup script

This commit is contained in:
paul 2019-04-18 21:00:21 +02:00
parent 5c77c97954
commit 06561bd8b7

9
contrib/create-backup.sh Normal file
View file

@ -0,0 +1,9 @@
#!/bin/bash
CONF_LOCATION=/data/slapd.d
CONTAINER_NAME=ldap
# dump configuration
docker exec -it ldap slapcat -F $CONF_LOCATION -n 0 > conf.ldif
# dump data
docker exec -it ldap slapcat -F $CONF_LOCATION -n 1 > data.ldif