docker-openldap-backup
docker-openldap-backup copied to clipboard
only the two root nodes of the ldap database gets dumped
my main problem: i want to backup the ldap database, so i tried to use the ldap backup docker image, but not the whole data gets backed up. as far as i understand only the two root nodes of the ldap database gets dumped, and here is my docker-compose.yml:
services:
db:
image: mysql:latest
volumes:
- "./.data/db:/var/lib/mysql"
- "./conf/mysql:/etc/mysql/conf.d"
restart: always
environment:
MYSQL_ROOT_PASSWORD: ldap
MYSQL_DATABASE: ldap
MYSQL_USER: dingfu
MYSQL_PASSWORD: ldap
ldap-client:
image: osixia/phpldapadmin:latest
hostname: dingfudata
domainname: ldap.dingfudata.com
depends_on:
- db
- ldap
links:
- db
- ldap:ldap.dingfudata.com
ports:
- 6443:443
restart: always
environment:
LDAP_DB_HOST: db:3306
LDAP_DB_PASSWORD: ldap
LDAP_DB_USER: dingfu
LDAP_DB_NAME: ldap
PHPLDAPADMIN_LDAP_HOSTS: ldap.dingfudata.com
PHPLDAPADMIN_LDAP_CLIENT_TLS: "false"
ldap:
depends_on:
- db
image: osixia/openldap:latest
hostname: dingfudata
domainname: ldap.dingfudata.com
ports:
- "389:389"
volumes:
- "./.data/var/lib/ldap:/var/lib/ldap"
- "./.data/etc/ldap/slapd.d:/etc/ldap/slapd.d"
links:
- db
restart: always
environment:
LDAP_DB_HOST: db:3306
LDAP_DB_PASSWORD: ldap
LDAP_DB_USER: dingfu
LDAP_DB_NAME: ldap
LDAP_ORGANISATION: DingFu
LDAP_DOMAIN: ldap.dingfudata.com
LDAP_ADMIN_PASSWORD: *****
LDAP_TLS: "false"
ldapbackup:
depends_on:
- db
- ldap
image: osixia/openldap-backup:latest
hostname: dingfudata
domainname: ldap.dingfudata.com
volumes:
- "./.data/openldap/backup:/data/backup"
- "./.data/etc/ldap/slapd.d:/etc/ldap/slapd.d"
links:
- db
- ldap:ldap.dingfudata.com
restart: always
environment:
LDAP_DB_HOST: db:3306
LDAP_DB_PASSWORD: ldap
LDAP_DB_USER: dingfu
LDAP_DB_NAME: ldap
LDAP_ORGANISATION: DingFu
LDAP_DOMAIN: ldap.dingfudata.com
LDAP_ADMIN_PASSWORD: ****
LDAP_BACKUP_CONFIG_CRON_EXP: "0 5 * * *"
LDAP_BACKUP_DATA_CRON_EXP: "0 5 * * *"
Hello, indeed only the 2 root nodes are backup for now, it would be great to backup all nodes i'm agree. Can you make a pull request ?
@materliu -- One nitpick to your current set up: It's quite silly to have two containers... Just use the one container...This is based off of https://github.com/osixia/docker-openldap -- so why those settings with the the this image.