[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: create new ldap database query



On Thursday 04 June 2009 08:58:21 mukim pathan wrote:
> Hi,
> I am trying to create new ldap database on new machine and I want to
> transfer full ldap database from old machine to new machine. Can I just
> transfer all the database files (.bdb,_db,alock) and expect new database to
> be at the same stage of old database??

This won't work if:
-The version of OpenLDAP is different
-The database library version is older on the target
-The architectures differ (e.g. x86 vs x86_64).

Even if it does work (none of the above conditions apply), it's still not a 
good idea to copy the database files directly (as it is non-trivial to get a 
consistent copy).

As covered in the documentation, the supported method for backing up and 
restoring data is via slapcat to export, and slapadd to import.

Regards,
Buchan