Add example backup script
This commit is contained in:
parent
5c77c97954
commit
06561bd8b7
1 changed files with 9 additions and 0 deletions
9
contrib/create-backup.sh
Normal file
9
contrib/create-backup.sh
Normal 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
|
Loading…
Reference in a new issue