[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Backing up LDAP database
On 29/09/99 at 17:43:23 -0700, Kurt D. Zeilenga spoke thus :
> At 09:41 AM 9/30/99 +1000, Andrew Kemp wrote:
> >/usr/local/sbin/ldbmcat -n db/id2entry.gdbm > bak/backup.ldif
> >However, with NO users connected to the database (ie: just started and
> >only known to the developers), when I run this command I get the
> >following : "db/id2entry.gdbm: Operation would block"
>
> Users don't connect to the database, slapd does. The LDBM
> backend uses file locking to keep folks from running LDBM
> tools are active databases.
>
> The "proper" way to do a back up is to:
> 1) shutdown slapd
> 2) copy database using either
> a) cp -r dbdir savedir
> or
> b) cp dbdir/id2entry.* savedir
> 3) restart slapd
>
> You can generate an LDIF from the copy if you desire, but I
> generally just archive a copy if id2entry.
Thanks Kurt.
BTW, if you have the id2entry copy and you have a failure, which tools
do you use to recover to a workable database ? ie: build all indexes, etc?
Thanks.
Regards,
Andrew Kemp
--
Unix,WWW,Proxy,News,DNS,LDAP,... Administrator Phone : 61 +3 9214-8252
Information Technology Services Fax : 61 +3 9214-8944
Swinburne University of Technology E-Mail: andrew@swin.EDU.AU
Hawthorn, Victoria, Australia 3122 URL: http://opax.swin.edu.au/andrew