Skip to content

Instantly share code, notes, and snippets.

@jagland
Created September 13, 2022 08:46
Show Gist options
  • Save jagland/7a43e171f0997f4e6350351e70f9dd82 to your computer and use it in GitHub Desktop.
Save jagland/7a43e171f0997f4e6350351e70f9dd82 to your computer and use it in GitHub Desktop.
#!/bin/bash
# AWS secrets from the IAM account.
export AWS_ACCESS_KEY_ID=""
export AWS_SECRET_ACCESS_KEY=""
# Passphrase for duplicity backups (GPG encrypted)
export PASSPHRASE=""
duplicity restore boto3+s3://example-s3-bucket/$j /data/testrestore/$1 --tempdir=/data/tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment