2022-10-14 21:32:51 +02:00
|
|
|
[Unit]
|
2022-10-26 22:09:50 +02:00
|
|
|
Description=Backup volume snapshots using restic
|
2022-10-14 21:32:51 +02:00
|
|
|
Documentation=man:restic(8)
|
2022-10-30 22:09:01 +01:00
|
|
|
OnFailure=status-mail@%n.service
|
2022-10-14 21:32:51 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
Environment=TZ=UTC
|
|
|
|
Environment=RESTIC_CACHE_DIR=/var/cache/restic
|
2022-10-19 22:21:32 +02:00
|
|
|
Environment=RESTIC_PASSWORD_FILE=/etc/restic.password
|
2022-10-14 21:32:51 +02:00
|
|
|
EnvironmentFile=/etc/scaleway.keys
|
2022-10-26 22:09:50 +02:00
|
|
|
ExecStart=/usr/local/sbin/restic-volume-data --root-dataset rpool/var/lib/{{ ansible_hostname }}/data --bucket-endpoint {{ scw_bucket_endpoint }}
|