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

Re: Is putting slapd into read-only mode sufficient for backups?

On Thu, 09 Feb 2012 14:36:20 -0800, Howard Chu <hyc@symas.com> wrote:
Hallvard B Furuseth wrote:
The only officially supported backup method with OpenLDAP is slapcat.
Everything else, you do at your own risk.

The admin guide disagrees with you. Chapter 19 describes incremental backup by copying first the entire DB, then backing up further DB logs.

Chapter 19 is obviously a work-in-progress, transferred over from the

Presumably because backup has previously only been described in
the FAQ-o-Matic.  But I'm pretty sure this has been the documented
backup method with the Berkeley DB backends since forever.  If that
doc is wrong, this warrants a warning in both the admin guide and the faq.

However, don't database recovery and restore of backup from DB + logs
do the same thing?  If so either both or neither should work.  Unless
the difference is that correct restore/recovery needs knowledge that
slapd has but the DB tools by themselves do not.

(In the latter case, maybe restore by starting a slap tool instead
of with db tools could work, I dunno.)

I'd say that anything referencing BerkeleyDB in there
should be deleted, since it is specific to BerkeleyDB and not specific
to OpenLDAP. (And most likely, in future releases, BerkeleyDB will
disappear anyway.)

In terms of the Admin Guide, that in itself would just mean the section
should be moved.