[Date Prev][Date Next]
Re: Is putting slapd into read-only mode sufficient for backups?
On Friday, 10 February 2012 01:48:45 Quanah Gibson-Mount wrote:
> --On Thursday, February 09, 2012 5:17 PM -0500 Brian Reichert
> <firstname.lastname@example.org> wrote:
> >> What we're doing currently is:
> >> - stopping slapd
> >> - using db_checkpoint and db_archive to manage the BDB logs
> >> - copy away the directory
> >> - restart slapd
> > I'm trying to estabish if read-only mode is close enough to _stopping_
> > slapd, to allow that bdb-specific processing to safely commence...
> I thought I was very clear on that in my last email. It is not sufficient.
> You need to stop slapd and run *db_recover*, which is more exhaustive than
> db_checkpoint, if you want to go the route of backing up the BDB db.
If you checkpoint, and you backup all the database files (including
transaction log files) in the correct order, you should not need to db_recover
(as database recovery can occur at a later time, if it could not, then your
backup is totally broken anyway).