/usr/share/zentyal-users/slapd.backup is in zentyal-users 2.3.15+quantal1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/bash
#
# Backup LDAP directories
#
umask 077
BACKUPDIR="/var/backups/slapd"
# Check if there is a directory slapd, otherwise create it.
if [ ! -d "$BACKUPDIR" ]; then
mkdir -p -m 0700 "$BACKUPDIR"
fi
date=$(date +%C%y%m%d-%H%M%S)
DESTDIR="$BACKUPDIR/slapd-preebox-$date"
mkdir -p -m 0700 $DESTDIR
slapcat > "$DESTDIR/ldap.db"
test -d /etc/ldap/slapd.d && cp -a /etc/ldap/slapd.d "$DESTDIR/slapd.d"
exit 0
|