2022-09-01 16:05:50 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-09-26 11:02:38 +00:00
|
|
|
for svc in dovecot consul plume cryptpad; do
|
2022-09-01 16:05:50 +00:00
|
|
|
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
|