Fix(Choux): borg backup from cron to systemd timer
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user