diff --git a/backup.sh b/backup.sh index 384326b..66cb35a 100755 --- a/backup.sh +++ b/backup.sh @@ -1,11 +1,15 @@ #!/usr/bin/env bash -source ./venv/bin/activate - set -o nounset set -o errexit set -o xtrace +if [[ ! -e ./venv ]] ; then + python3 -m venv venv +fi +source ./venv/bin/activate +command -v aws || pip install -r ./requirements.txt + export GNUPGHOME=./gpghome bucket="${1}" ; shift