{"id":18078437,"url":"https://github.com/techgaun/heroku-pgdb-copy","last_synced_at":"2025-07-22T14:35:01.170Z","repository":{"id":147048569,"uuid":"124615610","full_name":"techgaun/heroku-pgdb-copy","owner":"techgaun","description":"A plain simple bash script to copy and setup heroku database to your local postgres","archived":false,"fork":false,"pushed_at":"2018-03-10T03:33:18.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T20:41:30.608Z","etag":null,"topics":["heroku","heroku-cli","heroku-postgres"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techgaun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-10T02:41:45.000Z","updated_at":"2024-11-20T03:19:48.000Z","dependencies_parsed_at":"2023-09-08T06:15:19.105Z","dependency_job_id":null,"html_url":"https://github.com/techgaun/heroku-pgdb-copy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/techgaun/heroku-pgdb-copy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fheroku-pgdb-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fheroku-pgdb-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fheroku-pgdb-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fheroku-pgdb-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techgaun","download_url":"https://codeload.github.com/techgaun/heroku-pgdb-copy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fheroku-pgdb-copy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266510687,"owners_count":23940696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["heroku","heroku-cli","heroku-postgres"],"created_at":"2024-10-31T12:14:00.272Z","updated_at":"2025-07-22T14:35:01.129Z","avatar_url":"https://github.com/techgaun.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# heroku-pgdb-copy\n\n\u003e A plain simple bash script to copy and setup heroku database to your local postgres\n\n### Usage\n\n- Install [heroku-cli](https://devcenter.heroku.com/articles/heroku-cli)\n- Make sure you are logged in: `heroku login`\n- clone this repo or download the script from https://github.com/techgaun/heroku-pgdb-copy/raw/master/heroku-pgdb-copy\n\n```shell\nwget -O heroku-pgdb-copy https://github.com/techgaun/heroku-pgdb-copy/raw/master/heroku-pgdb-copy \u0026\u0026 chmod +x heroku-pgdb-copy\n```\n\n- Pass `HEROKU_APP` and `DATABASE_NAME` as the variables. These are the required variables.\n- Optionally pass `DB_USER` and `PGPASSWORD` (defaults assumed by this script are `postgres` : `postgres`)\n- If you have multiple pg database or non-standard database url, you can pass `HEROKU_DB_URL`\n\n### Examples\n\n```shell\n$ HEROKU_APP=zego-stage DATABASE_NAME=zego-stage ./heroku-pgdb-copy\n\n# custom database url\n$ HEROKU_APP=zego-stage DATABASE_NAME=zego-stage HEROKU_DB_URL=HEROKU_POSTGRESQL_MAUVE_URL ./heroku-pgdb-copy\n\n# custom pg user and password locally\n$ HEROKU_APP=zego-stage DATABASE_NAME=zego-stage DB_USER=techgaun PGPASSWORD=hello123 ./heroku-pgdb-copy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fheroku-pgdb-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechgaun%2Fheroku-pgdb-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fheroku-pgdb-copy/lists"}