ansible-edda/playbooks/filesystem/yggdrasil/etc/systemd/system/syncoid-volume-data.service.j2

13 lines
340 B
Django/Jinja

[Unit]
Description=Replicate volume data snapshots
Documentation=man:syncoid(8)
After=sanoid.service
Before=sanoid-prune.service
[Service]
Type=oneshot
ExecStart=/usr/sbin/syncoid --recursive --skip-parent --no-sync-snap rpool/var/lib/{{ ansible_hostname }}/data hpool/backup/{{ ansible_hostname }}/data
[Install]
WantedBy=sanoid.service