summaryrefslogtreecommitdiff
path: root/roles/storage/zfs/syncoid/templates/pull.service.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-05-23 17:19:49 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-05-23 17:19:49 +0200
commit800c98ee76dce280d63629b824ff2408e38e1631 (patch)
treefcc0efd67081ec48a6fa4c550c397d106723eb41 /roles/storage/zfs/syncoid/templates/pull.service.j2
parentcah/network: minor renumbering @ mgmt vlan (diff)
syncoid: use bookmarks if backup is not periodic
Diffstat (limited to 'roles/storage/zfs/syncoid/templates/pull.service.j2')
-rw-r--r--roles/storage/zfs/syncoid/templates/pull.service.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/storage/zfs/syncoid/templates/pull.service.j2 b/roles/storage/zfs/syncoid/templates/pull.service.j2
index 33283576..955161aa 100644
--- a/roles/storage/zfs/syncoid/templates/pull.service.j2
+++ b/roles/storage/zfs/syncoid/templates/pull.service.j2
@@ -4,7 +4,7 @@ Description=syncoid-based backup for {{ item.key }}
[Service]
Type=oneshot
{% for path,config in item.value.paths.items() %}
-ExecStart=/var/lib/syncoid/syncoid_wrapper --dumpsnaps --quiet {{ config.recursive | default(false) | ternary('-r ', '') }}{{ config.skip_parent | default(false) | ternary('--skip-parent ', '') }}{% for re in config.exclude | default([]) %}--exclude='{{ re }}' {% endfor %}{% if 'ssh_port' in item.value %}--sshport {{ item.value.ssh_port }} {% endif %}root@{{ item.value.ssh_hostname }}:{{ path }} {{ zfs_syncoid_target_pool }}/{{ item.key }}/{{ path }}
+ExecStart=/var/lib/syncoid/syncoid_wrapper{% if 'periodic' not in item.value %} --create-bookmark{% endif %} --dumpsnaps --quiet {{ config.recursive | default(false) | ternary('-r ', '') }}{{ config.skip_parent | default(false) | ternary('--skip-parent ', '') }}{% for re in config.exclude | default([]) %}--exclude='{{ re }}' {% endfor %}{% if 'ssh_port' in item.value %}--sshport {{ item.value.ssh_port }} {% endif %}root@{{ item.value.ssh_hostname }}:{{ path }} {{ zfs_syncoid_target_pool }}/{{ item.key }}/{{ path }}
{% endfor %}
{% if zfs_syncoid_autosuspend %}
ExecStart=/var/lib/syncoid/syncoid_post