Re: FAQ splinters
On Wed, Sep 22, 2004 at 02:51:35PM +0200, Ralf Gesel|ensetter wrote:
> Am Dienstag 21 September 2004 20:03 schrieb Ralf Gesel|ensetter:
> > To be continued
> Q: How can I easily backup the contents of the ldap user database?
> A: slapcat |gzip -9 >/some_disk/ldap_backup_`date +%y%m%d`.gz
> (to be run daily)
This could destroy your ldap if you run this while slapd is running.
/etc/init.d/slapd stop 2>/dev/null
slapcat -l /var/backups/tjener.ldif
/etc/init.d/slapd start 2>/dev/null
Then leave it up to slbackup to backup your database each day. slbackup
is scheduled to run at 01:00, so if you schedule this job to run at
00:30 then you will have this backed up before slbackup starts.