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?

It's only fair to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone

Leave a Reply

Your email address will not be published. Required fields are marked *