Skip to content

Instantly share code, notes, and snippets.

@reneweteling
Created April 16, 2019 09:23
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 reneweteling/95a8d3949711d2f1327fcf6473626e63 to your computer and use it in GitHub Desktop.
Save reneweteling/95a8d3949711d2f1327fcf6473626e63 to your computer and use it in GitHub Desktop.
tar -czf /storage-backup-$(date +"%d").tar.gz /home/dokku/storage && AWS_ACCESS_KEY_ID=$AWS_KEY AWS_SECRET_ACCESS_KEY=$AWS_SECRET aws s3 cp /storage-backup-$(date +"%d").tar.gz s3://$AWS_BUCKET && rm /storage-backup-$(date +"%d").tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment