aboutsummaryrefslogtreecommitdiff
path: root/restic-summary
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-09-01 18:05:50 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-09-01 18:05:50 +0200
commit02c65de5fec7242d225d6e052117f108f0a5e035 (patch)
tree38ccd91ed7ca6c865bc1acb544d206b5a1b365f8 /restic-summary
parent1749a98e86b0ea33131bbc3511fb7ed6fb39375d (diff)
downloadnixcfg-02c65de5fec7242d225d6e052117f108f0a5e035.tar.gz
nixcfg-02c65de5fec7242d225d6e052117f108f0a5e035.zip
Restart backups
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..f9295ba
--- /dev/null
+++ b/restic-summary
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+for svc in dovecot consul plume; 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