[Date Prev][Date Next]
RE: ldap backup
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)!
Feel free to correct this if I've missed something here! :)
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org [mailto:owner-openldap-
> Sent: Tuesday, August 23, 2005 7:34 AM
> To: openldap-software@OpenLDAP.org
> Subject: RE: ldap backup
> Is this true for BDB backends as well; does the ldap daemon need to be
> | -----Original Message-----
> | From: owner-openldap-software@OpenLDAP.org
> | [mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of
> | Karsten Gorling
> | Sent: 22 August 2005 22:17
> | To: openldap-software@OpenLDAP.org
> | Subject: Re: ldap backup
> | * Scott Mayo <firstname.lastname@example.org> [050822 22:57]:
> | > Is doing a slapat -b "dc=name,dc=com" -l backup_file.ldif
> | a good way to
> | > backup the database? This seems to be easy and fast.
> | Its a tried and true way. You should note, if you use a
> | ldbm-Backend, you have to shutdown the slapd-Process first.
> | --
> | Max-Born-Institut (MBI)/Max-Born-Straße 2A/12489
> | Berlin/Karsten Gorling
> | Telefon: ++49 30 6392 1341 / Telefax: ++49 30 6392 1309
> | E-Mail: email@example.com or firstname.lastname@example.org
> | Instantmessenger: Jabber: email@example.com or ICQ: 95492828
> | PGP-Fingerprint: 4BEF 23EA 02AE BACA 9918 31FF 285B 0426 0E1A B2FC
> | ----------------- > encrypted E-Mail preferred
> | <------------------------