configpolicy/roles/restic/files/restic-backup.service

13 lines
458 B
INI

[Unit]
Description=Back up filesystem with restic
[Service]
Type=oneshot
LoadCredential=restic.aws.credentials
LoadCredential=restic.password
Environment=AWS_SHARED_CREDENTIALS_FILE=%d/restic.aws.credentials
Environment=RESTIC_PASSWORD_FILE=%d/restic.password
Environment=XDG_CACHE_HOME=%C
EnvironmentFile=-%E/restic/environment
ExecStart=/usr/bin/restic backup --files-from %E/restic/include --exclude-file %E/restic/exclude --exclude-if-present .nobackup