I backup / restore using commands below. Show us your commands that fails.
# slapcat -n 2 > ldap_`date "+%Y%m%d%H%M"`.ldif # slapcat -b cn=config > ldapconfig_`date "+%Y%m%d%H%M"`.ldif # systemctl stop slapd # mkdir /root/backup/ # mv /etc/openldap/slapd.d/ /root/backup/ # mv /var/lib/ldap/ /root/backup/ # mkdir -m 700 /etc/openldap/slapd.d # mkdir -m 700 /var/lib/ldap # cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG # slapadd -n0 -F /etc/openldap/slapd.d -l ldapconfig_YYYYMMDDHHMM.ldif # chown ldap. -R /etc/openldap/slapd.d # slapadd -l ldap_YYYYMMDDHHMM.ldif # chown ldap. -R /var/lib/ldap # systemctl start slapd
-----Original Message----- From: Lars Päßler Lars.Paessler@reril.de Sent: Friday, January 29, 2021 8:12 AM To: openldap-technical@openldap.org Subject: Backup/Restore Overlays MemberOf
Hello,
I am running OpenLDAP 2.4.47 on Debian 10 for a while and now I enabled the overlay for memberOf. Is there any good option for backup and restore, because slapcat and slapadd aren't working.
Thanks and kind regards Lars