2022-10-14 21:32:51 +02:00
|
|
|
[Unit]
|
2022-10-30 16:21:07 +01:00
|
|
|
Description=Replicate volume data snapshots
|
2022-10-14 21:32:51 +02:00
|
|
|
Documentation=man:syncoid(8)
|
|
|
|
After=sanoid.service
|
2022-10-30 16:21:07 +01:00
|
|
|
Before=sanoid-prune.service
|
2022-10-30 22:09:01 +01:00
|
|
|
OnFailure=status-mail@%n.service
|
2022-10-14 21:32:51 +02:00
|
|
|
|
|
|
|
[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
|