Brute force openldap backup script

Posted in simple

Reliable.
Effective.
Simple.

#!/bin/sh
# Desc: STOP LDAP, BACKUP BDB, START LDAP
#
logger “LDAP Backup Started.”
/etc/init.d/ldap stop

slapcat -v -f /etc/openldap/slapd.conf -l /RAID-mount-point/ldap/backup.`date +%m-%d-%y`.ldif
if [ $? eq 0 ]; then
logger “LDAP Backup Completed.”
else
logger “ERROR! LDAP Backup Failed!”
fi

/etc/init.d/ldap start

disk-on-fire-pic
So LDAP is down for a minute, who cares… Run it when no one is around to notice the blip and it matters not. The whole purpose is to make the burning picture as scary as possible. No wait, as little scary as possible.

Ok no matter what, that looks scary. The hardware can be replaced, and if you have a good backup, the software can too.

Posted by admica   @   4 November 2009

Related Posts

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Name

Email

Website

Previous Post
« Don’t ever forget that Microsoft hates all forms of freedom
Next Post
Versatile resource statistics tool for Linux - dstat »
Powered by Wordpress   |   Lunated designed by ZenVerse