fixup! wip: unifi: restore data dir
parent
965cfa98c0
commit
02ea8a2067
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue