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

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