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

RE: ldap backup

--On Tuesday, August 23, 2005 9:35 AM -0600 Darren Gamble <darren.gamble@sjrb.ca> wrote:

Good day,

Additionally, for a BDB backend, you can also back up the database files
while slapd is running.  This is less resource intensive and works well
for a large database.

The procedure I've used, gathered from the Sleepycat page, is basically:

1) Copy your .bdb files and your DB_CONFIG file to a backup location.
There's a sleepycat tool to identify db files in a directory, but it won't
identify some files in some certain situations, so I believe it's best
just to grab files by extension.

2) THEN copy your "log" files, lowest IDs first, to the same location.

The order of copying is crucial!

Make absolutely sure you run slapd_db_recover on this data prior to
starting slapd (this is a good idea to do anyway)!

I would run db_recover after stopping slapd and before copying the *.bdb and log.* files, to make sure all data has been flushed from the cache.


-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin