Created
March 3, 2013 23:52
-
-
Save JeremyGeros/5078948 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| [default] | |
| use_https = True | |
| access_key = BLAHBLAHBLAH | |
| secret_key = BLAHBLAHBLAH |
This file contains hidden or 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
| #!/bin/bash | |
| export BACKUP_FILE=govocab-production-`date +'%Y-%m-%d-%H:%M'`.sql.gz | |
| mysqldump --single-transaction -u deploy -pPASSWORDGOESHERE DATABASENAMETODUMP | gzip - > /tmp/$BACKUP_FILE | |
| s3cmd put /tmp/$BACKUP_FILE s3://S3BUCKETNAME/mysql/$BACKUP_FILE | |
| rm /tmp/$BACKUP_FILE |
This file contains hidden or 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
| This package: s3cmd | |
| with a .s3cfg in home directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment