about summary refs log tree commit diff
path: root/bundles/restic-backup/files/restic.conf
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/restic-backup/files/restic.conf')
-rw-r--r--bundles/restic-backup/files/restic.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/restic-backup/files/restic.conf b/bundles/restic-backup/files/restic.conf
new file mode 100644
index 0000000..3807fd7
--- /dev/null
+++ b/bundles/restic-backup/files/restic.conf
@@ -0,0 +1,4 @@
+RESTIC_REPOSITORY=b2:${repo.vault.cmd(f"rbw get {node.name}/b2/backupbucket")}:/
+RESTIC_PASSWORD=${repo.vault.password_for(f"b2_bucket_{node.name}_pw")}
+B2_ACCOUNT_ID=${repo.vault.cmd(f"rbw get {node.name}/b2/keyid")}
+B2_ACCOUNT_KEY=${repo.vault.cmd(f"rbw get {node.name}/b2/appkey")}