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

Re: backup and restore



hi ron!

i have ldbm too. i have one server ant two replicas and sometimes i have to
copy the  master's database to the replicas because i had problems with
replication.

if you make ldif backup and later make slapadd you must do slapdindex too to
re-make the indexes of the database.
i prefer copy the openldap/var branch completly (i have the sames indexes at
the master and the slaves).

kind regards

agustin.
----- Original Message -----
From: "Ron McKown" <rmckown@envenergy.com>
To: <openldap-software@OpenLDAP.org>
Sent: Thursday, October 31, 2002 8:37 PM
Subject: backup and restore


> Hi everyone,
> i'm new to LDAP and i've read the LDAP howto as well as a few
> administration guides.  i've implemented authentication via LDAP and it
> works very well.
> i've run into a problem and i'm not sure i have all the facts.  i am
> trying to move my LDAP database from one machine to another.
> here's my command list:
> service ldap stop
> slapcat -f /etc/openldap/slapd.conf -l backup.ldif
> service ldap start
>
> i move the backup.ldif and slapd.conf file to the other computer, then:
> slapadd -f /etc/opendldap/slapd.conf -l backup.ldif
> (i get no errors here, i'm assuming all went well).
> service ldap start
> (again, no errors)
>
> however, now it seems that there is no data in the new database.
> did i use the wrong commands for this operation?  is there a better way?
> also, what is the best way to blow away a LDAP database on a machine?
>
> also, i'm using ldbm.
> thanks everyone!
>
> Ron McKown
> rmckown@envenergy.com
>
>
>
>
>