[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Deleting all Data
Thank you
-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of Greg Matthews
Sent: 15 October 2004 01:02
To: openldap
Cc: Sadik Kumlali
Subject: Re: Deleting all Data
On Fri, 2004-10-15 at 09:37, Howard Chu wrote:
> Sadik Kumlali wrote:
>
> >/etc/init.d/ldap stop
> >
> >
> ># /var/lib/ldap/example.com: 'directory' definition in 'slapd.conf'
> ># that gives the path of folder in which database files reside
> >rm -rf /var/lib/ldap/example.com
> >
> >/etc/init.d/ldap start
> >
> >That's all!
> >
> >
> Not quite. That also deletes the directory itself, which will cause
> slapd to fail to startup. This example would be better as
>
> rm -rf /var/lib/ldap/example.com/*
better yet:
rm -f /var/lib/ldap/example.com/[_a-z]*
to avoid deleting DB_CONFIG
--
Greg Matthews
iTSS Wallingford 01491 692445