{"id":13795870,"url":"https://github.com/timakin/gopli","last_synced_at":"2025-04-13T06:36:34.398Z","repository":{"id":68621599,"uuid":"67174178","full_name":"timakin/gopli","owner":"timakin","description":"DB replication tool to synchronize data with multi environments written in Golang.","archived":false,"fork":false,"pushed_at":"2017-01-15T13:08:35.000Z","size":32197,"stargazers_count":342,"open_issues_count":7,"forks_count":21,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-04-17T01:14:03.898Z","etag":null,"topics":["database","golang","mysql","replication","toml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timakin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-09-01T23:43:21.000Z","updated_at":"2024-04-08T12:16:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"e500c0f1-9967-498f-9cad-d29ffdc21c99","html_url":"https://github.com/timakin/gopli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fgopli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fgopli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fgopli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fgopli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timakin","download_url":"https://codeload.github.com/timakin/gopli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675303,"owners_count":21143763,"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":["database","golang","mysql","replication","toml"],"created_at":"2024-08-03T23:01:03.428Z","updated_at":"2025-04-13T06:36:34.373Z","avatar_url":"https://github.com/timakin.png","language":"Go","funding_links":[],"categories":["Go","DevOps Utilities"],"sub_categories":[],"readme":"gopli\n========\nDatabase backup between remote hosts (or local) written in Golang.\n\n## Feature\n\n- High-speed parallel data fetching with goroutine concurrency\n- Reuse options of connection with TOML configuration\n- Gopli will release you from an annoying replication setting\n\n# TODO\n- [ ] Currently MySQL only. so adopt to other management systems\n- [ ] Data mask for password, credit-card number, etc...\n- [ ] Response packet regulation and compression for fetched data\n\n## Install\n```\ngo get github.com/timakin/gopli\n```\n\n## Usage\nWrite down setting file in toml.\n```\n[database]\n  [database.local]\n  host = \"localhost\"\n  management_system = \"mysql\"\n  name = \"app_development\"\n  user = \"root\"\n  password = \"\"\n\n  [database.staging]\n  host = \"xxx.xxx.xxx.xxx\"\n  management_system = \"mysql\"\n  name = \"app_staging\"\n  user = \"root\"\n  password = \"\"\n\n  [database.production]\n  host = \"yyy.yyy.yyy.yyy\"\n  management_system = \"mysql\"\n  name = \"app_production\"\n  user = \"root\"\n  password = \"\"\n\n[ssh]\n  [ssh.local]\n  host = \"localhost\" # or \"127.0.0.1\"\n\n  [ssh.staging]\n  host = \"xxx.xxx.xxx.xxx\"\n  port = \"22\"\n  user = \"timakin\"\n  key = \"~/.ssh/id_rsa_staging\"\n\n  [ssh.production]\n  host = \"yyy.yyy.yyy.yyy\"\n  port = \"22\"\n  user = \"remoteuser\"\n  key = \"~/.ssh/id_rsa_prod\"\n\n```\n\n```\ngopli sync -from production -to staging -c config/gopli.toml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimakin%2Fgopli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimakin%2Fgopli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimakin%2Fgopli/lists"}