commit 500a0631d45c2f0a5068b81502a788446f916291 parent e8e727c0ffd073fa037039526f9e678191080ffc Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Wed, 6 Feb 2019 07:01:05 +0100 Fetch pass info from password-store Diffstat:
M | links/bin/backup-b2.sh | | | 11 | +++++++---- |
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/links/bin/backup-b2.sh b/links/bin/backup-b2.sh @@ -1,7 +1,10 @@ #!/usr/bin/env bash account="$(pass Online/backblaze.com-anders@adamsgaard.dk-account-id)" pass="$(pass Online/backblaze.com-anders@adamsgaard.dk-master-application-key)" - -duplicity --progress --use-agent $HOME b2://$account:$pass@idkfa-home -duplicity --progress --use-agent /usr b2://$account:$pass@idkfa-usr -duplicity --progress --use-agent /etc b2://$account:$pass@idkfa-etc +export PASSPHRASE="$(pass Online/backblaze.com-anders@adamsgaard.dk-backup-pass)" +export SIGN_PASSPHRASE="$PASSPHRASE" +duplicity --progress --use-agent $HOME b2://$account:$pass@idkfa-new-home +duplicity --progress --use-agent /usr b2://$account:$pass@idkfa-new-usr +duplicity --progress --use-agent /etc b2://$account:$pass@idkfa-new-etc +unset PASSPHRASE +unset SIGN_PASSPHRASE