aboutsummaryrefslogtreecommitdiff
path: root/restic_summary
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-23 00:07:02 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-23 00:07:02 +0100
commit827987d2018ce1a48697b10c039c3cf2ec0d1a19 (patch)
tree7bc091f28411c8a2a4ff78982d11e8c026e3936a /restic_summary
parent94a9c8afa8471cbb328262e6385fbda3383f7dde (diff)
downloadnixcfg-827987d2018ce1a48697b10c039c3cf2ec0d1a19.tar.gz
nixcfg-827987d2018ce1a48697b10c039c3cf2ec0d1a19.zip
cleanup
Diffstat (limited to 'restic_summary')
-rwxr-xr-xrestic_summary9
1 files changed, 9 insertions, 0 deletions
diff --git a/restic_summary b/restic_summary
new file mode 100755
index 0000000..38e9433
--- /dev/null
+++ b/restic_summary
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+for svc in dovecot consul plume cryptpad; do
+ export RESTIC_REPOSITORY=`pass deuxfleurs/backups/$svc/restic_repository`
+ export RESTIC_PASSWORD=`pass deuxfleurs/backups/$svc/restic_password`
+ export AWS_ACCESS_KEY_ID=`pass deuxfleurs/backups/$svc/aws_s3_access_key`
+ export AWS_SECRET_ACCESS_KEY=`pass deuxfleurs/backups/$svc/aws_s3_secret_key`
+ restic unlock
+ restic snapshots
+done