How to backup LDAP Server in linux

how to backup LDAP Server in linux

How to backup LDAP Server in linux

How to backup LDAP Server in linux

 LDAP सर्वर बैकअप

First of all  install ldap client tools. in your machine

#yum install ldap

Now Use below scripts to take complete backup of ldap server database.

#!/bin/bash

datestamp=`date +%Y%m%d`
filename="/backup/ldap/dump.$datestamp.ldif"
#echo $filename
/usr/local/openldap/bin/ldapsearch -x -h 192.168.1.1 -D "cn=root,ou=QMAIL-LDAP" -w "passwordn" -b "ou=QMAIL-LDAP" > $filename