-
-
Save guisehn/6648c8fdcd1102a22a22 to your computer and use it in GitHub Desktop.
Revisions
-
guisehn revised this gist
Apr 7, 2016 . 1 changed file with 5 additions and 13 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,11 @@ ## Grab new backup Command: ```heroku pg:backups capture -a [app_name]``` ## Download Command: ```curl -o latest.dump `heroku pg:backups public-url -a [app_name]` ``` ## Restore backup dump into local db Command: ```pg_restore --verbose --clean --no-acl --no-owner -h localhost -d [db_name] latest.dump``` -
guisehn revised this gist
Apr 7, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Response: ```>>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a71 ## Get url of backup download Command: ```curl -o latest.dump `heroku pg:backups public-url -a app` ``` ## Download backup dump file -
guisehn revised this gist
Apr 7, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Response: ```>>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a71 ## Get url of backup download Command: ```curl -o latest.dump `heroku pg:backups public-url -a app```` ## Download backup dump file -
guisehn revised this gist
Apr 7, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Response: ```>>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a71 ## Get url of backup download Command: ```curl -o latest.dump `heroku pg:backups public-url -a app``` ## Download backup dump file -
guisehn revised this gist
Apr 7, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ ## Grab new backup of database Command: ```heroku pg:backups capture -a app``` Response: ```>>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712``` -
guisehn revised this gist
Apr 7, 2016 . 1 changed file with 1 addition and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,11 +6,7 @@ Response: ```>>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a71 ## Get url of backup download Command: ```heroku pg:backups public-url -a app``` ## Download backup dump file -
wrburgess revised this gist
Nov 12, 2014 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,23 +1,23 @@ ## Grab new backup of database Command: ```heroku pgbackups:capture --remote production``` Response: ```>>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712``` ## Get url of backup download Command: ```heroku pgbackups:url [db_key] --remote production``` Example: ```heroku pgbackups:url a712 --remote production``` ```>>> "https://s3.amazonaws.com/hkpgbackups/[email protected]/a712.dump?AWSAccessKeyId=XXXXXXXXXXXXXX&Expires=1367876175&Signature=XXXXXXX%EEEEEEEYWWWWWWW%3D" ``` ## Download backup dump file Command: ```curl "http://[url]" > production.dump``` Example: ```curl "https://s3.amazonaws.com/hkpgbackups/[email protected]/a712.dump?AWSAccessKeyId=XXXXXXXXXXXXXX&Expires=1367876175&Signature=XXXXXXX%EEEEEEEYWWWWWWW%3D" > production.dump``` ## Restore backup dump into local db Command: ```pg_restore --verbose --clean --no-acl --no-owner -h localhost -d [db_name] production.dump``` -
wrburgess revised this gist
May 6, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ Grab new backup of database Command: ```heroku pgbackups:capture --remote production``` Response: ```>>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712``` Get url of backup download -
wrburgess revised this gist
May 6, 2013 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,15 +2,15 @@ Grab new backup of database ```heroku pgbackups:capture --remote production``` ```>>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712``` Get url of backup download Command: ```heroku pgbackups:url [db_key] --remote production``` Example: ```heroku pgbackups:url a712 --remote production``` ```>>> "https://s3.amazonaws.com/hkpgbackups/[email protected]/a712.dump?AWSAccessKeyId=XXXXXXXXXXXXXX&Expires=1367876175&Signature=XXXXXXX%EEEEEEEYWWWWWWW%3D" ``` Download backup dump file @@ -20,4 +20,4 @@ Example: ```curl "https://s3.amazonaws.com/hkpgbackups/[email protected]/a7 Restore backup dump into local db Command: ```pg_restore --verbose --clean --no-acl --no-owner -h localhost -d [db_name] production.dump``` -
wrburgess created this gist
May 6, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ Grab new backup of database ```heroku pgbackups:capture --remote production``` >>> ```HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712``` Get url of backup download Command: ```heroku pgbackups:url [db_key] --remote production``` Example: ```heroku pgbackups:url a712 --remote production``` >>> ``` "https://s3.amazonaws.com/hkpgbackups/[email protected]/a712.dump?AWSAccessKeyId=XXXXXXXXXXXXXX&Expires=1367876175&Signature=XXXXXXX%EEEEEEEYWWWWWWW%3D" ``` Download backup dump file Command: ```curl "http://[url]" > production.dump``` Example: ```curl "https://s3.amazonaws.com/hkpgbackups/[email protected]/a712.dump?AWSAccessKeyId=XXXXXXXXXXXXXX&Expires=1367876175&Signature=XXXXXXX%EEEEEEEYWWWWWWW%3D" > production.dump``` Restore backup dump into local db Command: ```pg_restore --verbose --clean --no-acl --no-owner -h localhost -d [db_name] production.dump```