{"id":15503159,"url":"https://github.com/johno/rails_pg_restore","last_synced_at":"2025-04-11T18:50:15.146Z","repository":{"id":56890674,"uuid":"49519255","full_name":"johno/rails_pg_restore","owner":"johno","description":"CLI to restore a Rails PostgresQL database from a backup. Infers db config from config/database.yml.","archived":false,"fork":false,"pushed_at":"2017-04-16T14:31:24.000Z","size":16,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-23T06:26:20.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/johno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-12T18:10:29.000Z","updated_at":"2022-09-14T13:45:55.000Z","dependencies_parsed_at":"2022-08-20T16:00:49.420Z","dependency_job_id":null,"html_url":"https://github.com/johno/rails_pg_restore","commit_stats":null,"previous_names":["johnotander/rails_pg_restore"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Frails_pg_restore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Frails_pg_restore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Frails_pg_restore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Frails_pg_restore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johno","download_url":"https://codeload.github.com/johno/rails_pg_restore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248463683,"owners_count":21108129,"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","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":[],"created_at":"2024-10-02T09:12:22.138Z","updated_at":"2025-04-11T18:50:15.112Z","avatar_url":"https://github.com/johno.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rails_pg_restore\n\nCLI to restore a postgres database from a backup. Infers db config from config/database.yml.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rails_pg_restore'\n```\n\nAnd then execute:\n\n```sh\n$ bundle\n```\n\nOr install it yourself as:\n\n```sh\n$ gem install rails_pg_restore\n```\n\n## Usage\n\n```sh\nrails_pg_restore -h\nUsage: rails_pg_restore --backup=path/to/backup.dump\n    -b, --backup BACKUP_LOCATION     Require the BACKUP_LOCATION before restoring\n    -e, --environment [ENVIRONMENT]  Specify the rails environment, defaults to development\n```\n```sh\n$ rails_pg_restore --backup=path/to/backup.dump\n$ rails_pg_restore --backup=path/to/backup.dump --environment=development\n```\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n***\n\n\u003e Crafted with \u003c3 by [John Otander](http://johnotander.com) ([@4lpine](https://twitter.com/4lpine)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Frails_pg_restore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohno%2Frails_pg_restore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Frails_pg_restore/lists"}