Created
April 16, 2019 09:23
-
-
Save reneweteling/95a8d3949711d2f1327fcf6473626e63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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