OpenLDAP online backups

This article was first written in June 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/269).

For BDB and HDB backends only, online backups (ie without stopping slapd to backup) are possible with slapcat.

For example, to backup the directory “dc=example,dc=com” to /tmp/ldap-backup.ldif:

slapcat -f /etc/ldap/slapd.conf -b "dc=example,dc=com" -l /tmp/ldap-backup.ldif

For other backends, the best solution is to replicate to another LDAP server and backup this one.

See also: How do I backup my directory?


Related Posts

HOWTO Use Samba as PDC using LDAP on Debian

This article was first written in October 2004 for the BeezNest technical website...

Cross-platform file and print server running GNU/Linux

GNU/Linux is particularly adapted as file server for Microsoft Windows, MacOS (any version)...