2022-04-01 17:57:20 +02:00
|
|
|
{{ file_header | default () }}
|
|
|
|
[Unit]
|
2022-04-01 18:00:52 +02:00
|
|
|
Description=Trigger zfs-snapshots with sanoid.
|
2022-04-01 17:57:20 +02:00
|
|
|
After=multi-user.target
|
|
|
|
OnFailure=cv4pve_mail.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
ExecStart=/usr/local/bin/cv4pve/cv4pve-autosnap --host=127.0.0.1 --api-token {{ cv4pve_api_user }}={{ cv4pve_api_token }} --vmid="{{ cv4pve_vmid }}" snap --label='daily' --keep="{{ cv4pve_keep_snapshots }}" --state
|