Skip to content

Instantly share code, notes, and snippets.

Created October 27, 2016 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6f360b0d5205de1334116de30b207774 to your computer and use it in GitHub Desktop.
Save anonymous/6f360b0d5205de1334116de30b207774 to your computer and use it in GitHub Desktop.
the description for this gist
#!/bin/bash
aws_upload () {
AWS_ACCESS_KEY_ID=[my access key] \
AWS_SECRET_ACCESS_KEY=[secret access key] \
AWS_DEFAULT_REGION=[bucket region] \
aws s3 cp "$backup_enc" "s3://my.backup.bucket/$s3_new_backup_name"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment