{"id":14973895,"url":"https://github.com/serbiant/heroku-db-clone","last_synced_at":"2025-08-23T13:19:53.187Z","repository":{"id":251991227,"uuid":"80668319","full_name":"serbiant/heroku-db-clone","owner":"serbiant","description":"Simple bash script that clone database from one Heroku app to another one. Transfers schema \u0026 data. Useful for duplicating data from production to staging environments. ","archived":false,"fork":false,"pushed_at":"2017-02-01T22:17:53.000Z","size":3,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T04:41:18.300Z","etag":null,"topics":["aws-cli","aws-s3","database","heroku","heroku-apps","postgres","postgresql","psql","s3","transfer-data"],"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/serbiant.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":"2017-02-01T21:53:58.000Z","updated_at":"2024-08-17T20:31:58.000Z","dependencies_parsed_at":"2024-08-07T02:36:32.069Z","dependency_job_id":null,"html_url":"https://github.com/serbiant/heroku-db-clone","commit_stats":null,"previous_names":["serbiant/heroku-db-clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/serbiant/heroku-db-clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serbiant%2Fheroku-db-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serbiant%2Fheroku-db-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serbiant%2Fheroku-db-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serbiant%2Fheroku-db-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serbiant","download_url":"https://codeload.github.com/serbiant/heroku-db-clone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serbiant%2Fheroku-db-clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271749047,"owners_count":24814114,"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-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["aws-cli","aws-s3","database","heroku","heroku-apps","postgres","postgresql","psql","s3","transfer-data"],"created_at":"2024-09-24T13:49:38.943Z","updated_at":"2025-08-23T13:19:53.140Z","avatar_url":"https://github.com/serbiant.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# heroku-db-clone\nSimple bash script that clone **Postgres** database from one Heroku app to another one. \n\n## General purpose\n\nBasically, this tiny bash script might be used for copying database from **production** environment to **staging** to be able to play with real data without any harmful actions. For this case, notice that you might need to copy **S3 bucket or other services** that DB entities point to as well.\n\nGenerally, you can use this script when setting up several heroku apps for different environments, or you just simply want to clone database to another app. \n \n## Requirements\n- [heroku-cli](https://devcenter.heroku.com/articles/heroku-cli) installed and authenticated.\n- [aws-cli](https://aws.amazon.com/ru/cli/) installed and authenticated.\n- You must be the **owner** or **collaborator** for both applications.\n\n## Usage\n```!bash\n$ sh transfer_databases.sh \n```\n\n## Tips\nIn case you got a permission error, just make it `executable`:\n```!bash\n$ sudo chmod 755 transfer_databases.sh  \n```\n\n## Misc\n\nFor any suggestions, help requests and contributing, just contact **vladimir.tagai@duniceedge.com**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserbiant%2Fheroku-db-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserbiant%2Fheroku-db-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserbiant%2Fheroku-db-clone/lists"}