Closed GoogleCodeExporter closed 8 years ago
How to backup and restore an LDAP db from one system to another
dump ldap db from system A:
slapcat > /root/ldap-2014-07-11.ldiff
scp /root/ldap-2014-07-11.ldiff root@B.usc.edu
to rebuild ldap from a ldiff txt dump on system B:
service slapd stop
cd /var/lib ldap
rm everything except DB_CONFIG
slapadd -l /tmp/ldap-2014-07-11.ldiff
chown ldap.ldap *
chmod g+rw *
service slapd start
#done
Original comment by zack...@gmail.com
on 11 Jul 2014 at 10:27
Original comment by zack...@gmail.com
on 11 Jul 2014 at 10:36
Original issue reported on code.google.com by
zack...@gmail.com
on 10 Jul 2014 at 12:08