{"id":19882951,"url":"https://github.com/svengau/copybase","last_synced_at":"2025-05-02T14:32:55.234Z","repository":{"id":65522723,"uuid":"485389858","full_name":"svengau/copybase","owner":"svengau","description":"Copy or backup databases quickly 🚀","archived":false,"fork":false,"pushed_at":"2025-02-24T07:25:08.000Z","size":458,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-26T14:01:49.447Z","etag":null,"topics":["backup","copy","mariadb","mongodb","mysql","postgresql"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/svengau.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,"zenodo":null}},"created_at":"2022-04-25T13:47:12.000Z","updated_at":"2025-02-24T07:25:11.000Z","dependencies_parsed_at":"2025-04-26T14:01:45.539Z","dependency_job_id":"ae8f43c7-ae79-4a1f-b412-5bebba63e162","html_url":"https://github.com/svengau/copybase","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"63f278e660fe26adcc98e765b87d88b05b54ed0d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svengau%2Fcopybase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svengau%2Fcopybase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svengau%2Fcopybase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svengau%2Fcopybase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svengau","download_url":"https://codeload.github.com/svengau/copybase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252053936,"owners_count":21687196,"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":["backup","copy","mariadb","mongodb","mysql","postgresql"],"created_at":"2024-11-12T17:19:00.742Z","updated_at":"2025-05-02T14:32:54.900Z","avatar_url":"https://github.com/svengau.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm][npm]][npm-url]\n[![node][node]][node-url]\n[![downloads][downloads]][downloads-url]\n\n## About\n\nCopybase is a database tool that helps you quickly copy a database. Simply define your databases config in a `.copybaserc.yaml`, and start copying or backuping them with a simple command line:\n\n```sh\ncopybase copy staging local\n```\n\n```sh\ncopybase backup prod\n```\n\nNote: copybase uses the native tools to build command lines to launch. So you still need to install mysql, psql or mongo.\n\n## Getting Started\n\n### Installation\n\n```sh\n# install copybase globally\nnpm i -g copybase\n# with yarn:\nyarn global add copybase\n\n# or locally\nnpm i copybase\n# with yarn:\nyarn add copybase\n```\n\nYou also need to install the official db tools:\n\n- [Instructions for MongoDB](https://www.mongodb.com/docs/database-tools/installation/installation/)\n- [Instructions for MySQL](https://dev.mysql.com/doc/refman/8.0/en/installing.html)\n- [Instructions for PostgreSQL](https://www.postgresql.org/download/)\n\n### Configuration\n\nCopybase uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig), so you just need to create a file `.copybaserc.yaml` (or `.copybaserc.json`, `.copybaserc.js`) with the following sample config:\n\n```yaml\nbackup:\n  # output folder when you run the backup command\n  folder: .backup\n# list all databases you want to work with\ndatabases:\n  # sample config for localhost\n  local:\n    database: demo\n    protocol: postgresql\n    hostname: 127.0.0.1\n    port: 54321\n    username: demo\n    password: password\n\n  # sample config for a remote database, uring uri\n  staging:\n    uri: postgresql://demo:staging.example.com@localhost:54322/demo\n```\n\n**Note**: you can pass some extra parameters to the command line underneath. Look at [.copybaserc.yaml](https://github.com/svengau/copybase/blob/main/.copybaserc.yaml) in the current repository.\n\n### Usage\n\n```\nUsage: copybase [options] [command]\n\nCopy quickly a database\n\nOptions:\n  -V, --version                               output the version number\n  -h, --help                                  display help for command\n\nCommands:\n  copy [options] \u003cfromDatabase\u003e \u003ctoDatabase\u003e  Copy a database\n  list:tables [options] \u003cdatabase\u003e            List all tables in database\n  backup [options] \u003cdatabase\u003e                 Backup a database\n  restore [options] \u003cfrom\u003e \u003ctoDatabase\u003e       Restore a database\n  help [command]                              display help for command\n```\n\n[npm]: https://img.shields.io/npm/v/copybase.svg\n[npm-url]: https://npmjs.com/package/copybase\n[node]: https://img.shields.io/node/v/copybase.svg\n[node-url]: https://nodejs.org\n[deps]: https://david-dm.org/webpack-contrib/copybase.svg\n[deps-url]: https://david-dm.org/webpack-contrib/copybase\n[tests]: http://img.shields.io/travis/webpack-contrib/copybase.svg\n[tests-url]: https://travis-ci.org/webpack-contrib/copybase\n[downloads]: https://img.shields.io/npm/dt/copybase.svg\n[downloads-url]: https://npmjs.com/package/copybase\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvengau%2Fcopybase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvengau%2Fcopybase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvengau%2Fcopybase/lists"}