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

Re: Fastest way to delete entire DB and reload its LDIF ? <EOM>



Quoting Paul Duffy <paduffy@cisco.com>:

1. Shutdown slapd
2. Cd to your database directory
3. ldbmcat -n id2entry.dbb > /tmp/full_database.ldif
4. rm *
5. ldif2ldbm -i /tmp/full_database.ldif
6. Start slapd

Beware though, if your database isn't in full working order,
it might 'mess up things'...