Hi Sanjay

e.g   /opt/symas/bin/mdb_copy   /openldap-data  /backup/

syntax:- mdb_copy      /<db-dir>     /<backup destination>

You only need   data.mdb file.  We are having very big db size(about 500Gb)  and we never face any problem with backup.
lock.mdb is not required. 

You can simply copy back data.mdb to your db directory for restoration and it will work like magic.



On Thu, May 30, 2013 at 3:21 AM, Quanah Gibson-Mount <quanah@zimbra.com> wrote:
--On Wednesday, May 29, 2013 2:26 PM -0700 Sanjay Jain <sjain74@gmail.com> wrote:

    How do I take backup of data.mdb and lock.mdb files while server
is up and provisioning is going on? Is mdb_copy not the right tool for
this purpose? What am I missing?

a) What version of OpenLDAP are you using?  I can mdb_copy a live DB just fine.

b) You only need a backup of data.mdb.  That's why lock.mdb isn't copied.

--Quanah

--

Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration




--

Thanks&Regards
Anil Beniwal
+919891695048