mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 08:08:34 +01:00
10 lines
224 B
Bash
10 lines
224 B
Bash
#!/bin/bash
|
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
DIR=/home/sheppy/slapd_backup/
|
|
BACKUP_NAME=backup_$(date +%Y%m%d).ldif
|
|
mkdir -p $DIR
|
|
|
|
slapcat > ${DIR}${BACKUP_NAME}
|
|
chown -R sheppy:sheppy $DIR
|