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

12 lines
408 B
Plaintext
Raw Normal View History

2022-10-14 21:32:51 +02:00
[Unit]
Description=Backup service data snapshots using restic
Documentation=man:restic(8)
[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-19 22:21:32 +02:00
ExecStart=/usr/local/sbin/restic-service-data --data-root /var/lib/{{ ansible_hostname }}/data --bucket-endpoint {{ scw_bucket_endpoint }}