diff --git a/contrib/create-backup.sh b/contrib/create-backup.sh new file mode 100644 index 0000000..36eda4d --- /dev/null +++ b/contrib/create-backup.sh @@ -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