From 389f7be86f07a08a6282e02913a676aeef328db5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 19 May 2021 23:39:10 +0200 Subject: syncoid: run vs pull and fix autosuspend timer --- roles/storage/zfs/syncoid/templates/pull.timer.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 roles/storage/zfs/syncoid/templates/pull.timer.j2 (limited to 'roles/storage/zfs/syncoid/templates/pull.timer.j2') 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 -- cgit v1.2.3