salt-states/restic/files/restic-backup.service.jinja

12 lines
200 B
Plaintext
Raw Normal View History

2023-06-27 07:16:37 +00:00
[Unit]
Description=Run restic backup
[Service]
Type=oneshot
User={{ pillar.restic.user }}
ExecStart={{ salt['user.info'](pillar.restic.user).home }}/bin/backup.sh
[Install]
WantedBy=default.target