Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only the two root nodes of the ldap database gets dumped #2

Open
materliu opened this issue Nov 10, 2016 · 2 comments
Open

only the two root nodes of the ldap database gets dumped #2

materliu opened this issue Nov 10, 2016 · 2 comments

Comments

@materliu
Copy link

materliu commented Nov 10, 2016

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 * * *"
@osixia
Copy link
Collaborator

osixia commented Nov 10, 2016

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 ?

@robbyoconnor
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants