aboutsummaryrefslogtreecommitdiffstats
path: root/templates/borg_backup.service.j2
blob: 04f2a49aa6e23d28287a628cf56d89ddf9c9a007 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=Runs borgbackup to create application level backup (ANSIBLE MANAGED)
Wants={{ borg_backup_timer_name }}{{ "@" if borg_backup_argument != "" }}{{ borg_backup_argument }}.timer

[Service]
Type=oneshot
ExecStart={{ borg_backup_script_location }}
User={{ borg_client_user }}
Group={{ borg_client_user }}
{% if borg_backup_service_successful_exit_status | length > 0 %}
SuccessExitStatus={{ borg_backup_service_successful_exit_status | join(' ') }}
{% endif %}

[Install]
WantedBy=multi-user.target