14 lines
373 B
Django/Jinja
14 lines
373 B
Django/Jinja
[Unit]
|
|
Description=Replicate volume data snapshots
|
|
Documentation=man:syncoid(8)
|
|
After=sanoid.service
|
|
Before=sanoid-prune.service
|
|
OnFailure=status-mail@%n.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
|