[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Full Backup/Restore slapd
- To: openldap-technical@openldap.org
- Subject: Re: Full Backup/Restore slapd
- From: Jan-Piet Mens <jpmens.dns@gmail.com>
- Date: Thu, 21 Jun 2012 19:59:33 +0200
- Content-disposition: inline
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent:sender; bh=kygOmr7068ImvKQncdV2gKbNJnDm6hWLEpxsGvpWHXQ=; b=sUzJEcBv50h09lChwhyVJ5PPHHPQXT26Hf0L9UOmkwnT0zmaLXi5sPWYldk5IJFLce 20kimBH8E4de0LXZ412I+PPoVWGPOSbM/vBW43+tGugq5O7Yr2B7h2I2WQQX2UgHK8Bp RctdF4FuzXbR1qoTOh5ftdzaoQifv3Gt5kPtJgvYMSzniahsx4r2AmLeDl6fzExqlz87 GZPhIzr/AnJCGUmQmnF3YEGzwwuOyEWI6kh9lxCgRIreyVsvSuSEkQCSCsSuIW7jsiTj krxsZZPzHw3/Ul7Y/lEB12BJdd8kWd0nVbfIn0yklUult7FDh+O3OMQd4hMo7u0tFOeL RSjw==
- In-reply-to: <DUB109-W2348D1B1D56440678119C3C5FD0@phx.gbl>
- References: <DUB109-W2348D1B1D56440678119C3C5FD0@phx.gbl>
- User-agent: vim (7.2)/Mutt (1.5.21)
> I want to implement a full backup procedure of my LDAP (schema, ACL,
> Data ...).
Databases are numbered, with 0 being cn=config, 1 the first back-end you
configure, 2 the next etc. I suggest having `slapcat' dump the whole
database, so either, say,
slapcat -n 0 -l config.ldif.backup
slapcat -n 1 -l example.net.backup
or use -b to specify the suffixes:
slapcat -b "cn=config" -l config.ldif.backup
slapcat -n "dc=example,dc=net" -l example.net.backup
Restoring is a matter of taking `slapd' down and using `slapadd` (with
above options) to restore, ensuring permissions and ownership of the
files are correct before restarting `slapd'.
Read the manual pages for slapcat(8) and slapadd(8).
-JP