Open mb-wali opened 10 months ago
A systemctl stop slapd
is not needed for slapcat
.
The slapd
has to be stopped.
When installing the dn_suffix
should be the same like the dumped ldap-database. (Otherwise the new suffix has to be created and the wrong one should be deleted.)
Pleas do the followings: @tufranz
`ldap01
OPENLDAP_QA
with the existing passwordsldap01.cyverse.at
ldap01.cyverse.at
)on ldap01.cyverse.at
:
slapcat -l backup.ldif
copy the dump from ldap01.cyverse.at
to the new ldapserver (eg.. qa-openldap.cyverse.at
).
qa-openldap.cyverse.at
)on qa-openldap.cyverse.at
:
systemctl stop slapd.service
cd /var/lib/
mv ldap/ ldap.$(date +%Y%m%d)
mkdir ldap
slapadd -f /etc/ldap/slapd.conf -l ~/backup.ldif
chown -R openldap:openldap ldap
systemctl start slapd.service
to check the restor look at the difference between the backup.ldif
and a new created dump (slapcat -l restore.ldif
) on qa-openldap.cyverse.at
.
dump
restore