krish – 起死回生 [Wake up from death & return to life.]

November 26, 2009

Simple backup and restore LDAP

Filed under: GNU/Linux — krish @ 7:24 pm
Tags: , ,

At its simplest form this is how you do it…

To backup use:

Note: It is recommended to stop the ldap server before backing it up using slapcat
/usr/sbin/slapcat -l /path/to/dump/dumpfile.ldif

To restore on new server:

1. Backup existing ldap
/usr/sbin/slapcat -l /usr/local/backups/$DATE/ldap-11june09.ldif

2. Stop ldap service
service ldap stop

Move contents from /var/lib/ldap to some other backup directory

3. Overwrite old config from ldap-old.ldif | This will ask for ldap password.
slapadd -l /path/to/ldap-old.ldif -w

4. Change ownership
chown -R ldap /var/lib/ldap

5. Start ldap service
service ldap start


1 Comment »

  1. […] LDAP servers must be at the same state of data before replication. Refer How-to on copying the data from master to […]

    Pingback by Setting up LDAP Replication « su -c ‘rm -rf /mnt/proprietary’ — April 19, 2010 @ 5:17 pm

RSS feed for comments on this post. TrackBack URI

Please leave a Reply / Discuss this topic here :)

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

The Male Factor

#1 Site For Research on Men and Boys

Rough Draft

by Atteris Amarth and Darrek Ringo

The Kochi Post.

Read by all + Influenced by none


A signature of Kiran


This blog is just for additional and extension share of it's main frames. No activity is planned from here

krish - 起死回生 [Wake up from death & return to life.]

Get a sneak peek into krish's life, work and passion. is the best place for your personal blog or business site.

A Tale of Two and a Half

Monika Amita Bakshi

%d bloggers like this: