ldap backup solution
Sebastien Valla
sebastien.valla at equation.fr
Tue Jul 4 09:29:57 UTC 2006
Hello,
here's a good script :
#!/bin/sh
#exit if no ldap database
if [ ! -f /var/lib/ldap/objectClass.dbb -a ! -f /var/lib/ldap/
objectClass.bdb ]; then
exit
fi
backupdir=/var/lib/ldap/backup
slapcat >$backupdir/backup-`LANG=c date +%A`.ldif
if [ `date +%d` == "01" ]; then
slapcat >$backupdir/backup-`LANG=c date +%B`.ldif
--
Salutations.
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Sébastien VALLA <sebastien.valla at equation.fr>
Ingénieur systèmes et réseaux
EQUATION SA http://www.equation.fr
Ingénierie Réseaux, Linux et Internet
Progiciels de Gestion Intégrés (ERP)
Tél.: 04 77 79 48 00 Fax: 04 77 79 48 01
Le 25 juin 06 à 20:20, Anze Vidmar a écrit :
> Hi!
>
> I have a few OpenLDAP databases that are about 1Gb big at the moment.
> The database is growing each day.
>
> The database is set up on a IBM storage of 0,5T (Raid5) and it's
> connected with fiberchannel on the RHEL4 cluster (2 nodes).
>
> I need a backup solution for this ldap database. What application/tool
> would be the most appropriate for ldap database backup?
>
> thank you.
>
> --
> Anze Vidmar <anzevi at gmail.com>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list