ansible_role_restic/templates/restic.service.j2

16 lines
324 B
Text
Raw Normal View History

2021-04-29 14:58:12 +02:00
[Unit]
Description=Backup {{ item.name }} using restic
{% if item.lvm is defined %}
Conflicts=fstrim.service
After=fstrim.timer
{% endif %}
2021-04-29 14:58:12 +02:00
[Service]
Type=oneshot
{% if item.lvm is defined %}
PrivateMounts=on
{% endif %}
2021-04-29 14:58:12 +02:00
ExecStart={{ restic_script_dir }}/backup-{{ item.name }}.sh
2021-12-07 17:47:51 +01:00
TimeoutStartSec=0
2021-04-29 14:58:12 +02:00
Environment="CRON=true"