summaryrefslogtreecommitdiff
path: root/roles/storage/zfs/syncoid/templates/systemd.service.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-05-19 16:52:36 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-05-19 16:52:36 +0200
commit26214e3f7c5343fa30d2ff1ae71a6cf7197b6f3e (patch)
tree3782b45b690df45257e4170df86b57a4b4f3575c /roles/storage/zfs/syncoid/templates/systemd.service.j2
parentrename apt-repo github-containers to kubic-project (diff)
initial version of syncoid autosuspender
Diffstat (limited to 'roles/storage/zfs/syncoid/templates/systemd.service.j2')
-rw-r--r--roles/storage/zfs/syncoid/templates/systemd.service.j219
1 files changed, 0 insertions, 19 deletions
diff --git a/roles/storage/zfs/syncoid/templates/systemd.service.j2 b/roles/storage/zfs/syncoid/templates/systemd.service.j2
deleted file mode 100644
index 0d214595..00000000
--- a/roles/storage/zfs/syncoid/templates/systemd.service.j2
+++ /dev/null
@@ -1,19 +0,0 @@
-[Unit]
-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 }}
-{% endfor %}
-{% if 'periodic' in item.value %}
-TimeoutStartSec={{ item.value.periodic.timeout }}
-{% endif %}
-PrivateTmp=yes
-ProtectHome=yes
-ProtectKernelTunables=yes
-ProtectControlGroups=yes
-RestrictRealtime=yes
-
-[Install]
-WantedBy=multi-user.target