Fix(Choux): borg backup from cron to systemd timer

This commit is contained in:
2018-10-08 10:28:02 +02:00
parent 443db2c375
commit 47ef169667
5 changed files with 39 additions and 5 deletions

View File

@@ -4,14 +4,26 @@
name: borg
state: present
- name: Automate toward local RAID backup with cron.daily
- name: Automate toward local RAID backup with systemd timer
template:
src: files/choux_borg_cron.sh
dest: /etc/cron.daily/
src: files/choux_borg.sh
dest: {{ borg_script_path }}
mode: 755
- name: Enable cronie daemon
- name: Backup systemd timer
template:
src: files/choux_borg.timer
dest: /etc/systemd/system/
mode: 755
- name: Backup systemd service
template:
src: files/choux_borg.service
dest: /etc/systemd/system/
mode: 755
- name: Enable systemd borg script
service:
name: cronie
name: choux_borg
state: started
enabled: yes