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

View File

@@ -118,3 +118,16 @@
- mail
- soundlib
- monitoring
- name: Deploy Backup Script
copy:
src: slapd_backup.sh
dest: /opt/
mode: 0700
- name: Create cronjob Slapd backup
cron:
hour: "0"
minute: "30"
name: SLAPD Backup (slapcat)
job: "/opt/slapd_backup.sh"