align borg and burp folders to backup, switch to systemd for scheduling
This commit is contained in:
9
templates/borg_backup.service
Normal file
9
templates/borg_backup.service
Normal file
@@ -0,0 +1,9 @@
|
||||
# {{ansible_managed}}
|
||||
# this file was created from the role: {{ ansible_role_name }}
|
||||
[Unit]
|
||||
Description = get installed packages list
|
||||
|
||||
[Service]
|
||||
Type = oneshot
|
||||
ExecStart = {{ borg_script_dir }}/borg.sh
|
||||
User = tom
|
||||
8
templates/borg_backup.timer
Normal file
8
templates/borg_backup.timer
Normal file
@@ -0,0 +1,8 @@
|
||||
# {{ansible_managed}}
|
||||
# this file was created from the role: {{ ansible_role_name }}
|
||||
[Unit]
|
||||
Description= daily borg backup
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 22:{{ 59|random( seed=inventory_hostname ) }}:0
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user