fixup! wip: unifi: restore data dir

unifi-restore
Dustin 2025-08-08 15:36:14 -05:00
parent 965cfa98c0
commit 02ea8a2067
1 changed files with 9 additions and 0 deletions

View File

@ -2,4 +2,13 @@ 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