Created
December 30, 2011 02:21
-
-
Save allanlei/1537335 to your computer and use it in GitHub Desktop.
pg_dump and upload to S3 using s3cmd
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
FILENAME="DATABASE.backup" && pg_dump -Fc -O -x -f "$FILENAME" DATABASE && s3cmd --acl-private put "$FILENAME" s3://S3_BUCKET && rm "$FILENAME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment