mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 23:28:32 +01:00
feat: slapd via slapcat backup
This commit is contained in:
@@ -30,3 +30,45 @@
|
||||
repo: https://github.com/FAUSheppy/backup-tools
|
||||
dest: /home/sheppy/backups/backup-tools/
|
||||
version: master
|
||||
|
||||
- name: Create SSH Dir
|
||||
file:
|
||||
path: /home/sheppy/.ssh/
|
||||
state: directory
|
||||
owner: sheppy
|
||||
group: sheppy
|
||||
|
||||
- name: Copy SSH config and backup priv key
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/home/sheppy/.ssh/{{ item }}"
|
||||
owner: sheppy
|
||||
group: sheppy
|
||||
mode: 0600
|
||||
with_items:
|
||||
- backup_priv_key
|
||||
- config
|
||||
|
||||
- name: template SLAPD backup script
|
||||
template:
|
||||
src: slapd_backup.sh
|
||||
dest: /home/sheppy/
|
||||
owner: sheppy
|
||||
group: sheppy
|
||||
mode: 0700
|
||||
|
||||
- name: Add slapd script to cron
|
||||
cron:
|
||||
minute: "10"
|
||||
hour: "1"
|
||||
name: SLAPD via rsync backup
|
||||
job: /home/sheppy/slapd_backup.sh
|
||||
user: sheppy
|
||||
|
||||
- name: Add ths nextcloud backup script to cron
|
||||
cron:
|
||||
minute: "0"
|
||||
hour: "1"
|
||||
name: THS Caldav Backup
|
||||
job: /home/sheppy/ths_cal_backup.sh
|
||||
user: sheppy
|
||||
|
||||
Reference in New Issue
Block a user