feat: slapd via slapcat backup

This commit is contained in:
2023-01-15 17:26:54 +01:00
parent fa61c58471
commit 00e6a694de
12 changed files with 157 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/bash
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