configpolicy/group_vars/unifi/restic.yml

15 lines
597 B
YAML

restic_include:
- /var/lib/unifi
unifi_data_restore_command: >-
systemd-run --wait --collect
--service-type oneshot
--unit restic-restore-unifi.service
-p Environment=AWS_SHARED_CREDENTIALS_FILE=/run/credentials/restic-restore-unifi.service/restic.aws.credentials
-p Environment=RESTIC_PASSWORD_FILE=/run/credentials/restic-restore-unifi.service/restic.password
-p Environment=XDG_CACHE_HOME=/var/cache
-p LoadCredential=restic.aws.credentials
-p LoadCredential=restic.password
-p EnvironmentFile=/etc/restic/environment
restic restore --path /var/lib/unifi --target / latest