ldap/contrib/create-backup.sh

10 lines
223 B
Bash
Raw Normal View History

2019-04-18 21:00:21 +02:00
#!/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