summaryrefslogtreecommitdiff
path: root/roles/storage/zfs/syncoid/templates/pull.timer.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/storage/zfs/syncoid/templates/pull.timer.j2')
-rw-r--r--roles/storage/zfs/syncoid/templates/pull.timer.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/storage/zfs/syncoid/templates/pull.timer.j2 b/roles/storage/zfs/syncoid/templates/pull.timer.j2
new file mode 100644
index 00000000..cc252854
--- /dev/null
+++ b/roles/storage/zfs/syncoid/templates/pull.timer.j2
@@ -0,0 +1,9 @@
+[Unit]
+Description=syncoid-based backup for {{ item.key }}
+
+[Timer]
+OnCalendar={{ item.value.periodic.schedule }}
+WakeSystem={{ zfs_syncoid_autosuspend | ternary('true', 'false') }}
+
+[Install]
+WantedBy=timers.target