mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 09:58:31 +01:00
feat: slapd via slapcat backup
This commit is contained in:
8
roles/usermanagement/files/slapd_backup.sh
Normal file
8
roles/usermanagement/files/slapd_backup.sh
Normal 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
|
||||
Reference in New Issue
Block a user