{"id":18616008,"url":"https://github.com/bjoern-hempel/table-dumper","last_synced_at":"2026-04-13T21:01:37.813Z","repository":{"id":110076984,"uuid":"494891428","full_name":"bjoern-hempel/table-dumper","owner":"bjoern-hempel","description":"Create simple table dumps as fixtures for your project","archived":false,"fork":false,"pushed_at":"2022-05-31T10:26:05.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T02:06:08.405Z","etag":null,"topics":["database","docker","dumper","mysql"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/bjoern-hempel.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-21T20:45:26.000Z","updated_at":"2022-05-21T21:40:00.000Z","dependencies_parsed_at":"2023-05-21T12:31:01.602Z","dependency_job_id":null,"html_url":"https://github.com/bjoern-hempel/table-dumper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bjoern-hempel/table-dumper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoern-hempel%2Ftable-dumper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoern-hempel%2Ftable-dumper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoern-hempel%2Ftable-dumper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoern-hempel%2Ftable-dumper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjoern-hempel","download_url":"https://codeload.github.com/bjoern-hempel/table-dumper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoern-hempel%2Ftable-dumper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31770726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database","docker","dumper","mysql"],"created_at":"2024-11-07T03:33:46.009Z","updated_at":"2026-04-13T21:01:37.798Z","avatar_url":"https://github.com/bjoern-hempel.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# table-dumper\n\nA helper script for dumping database tables. Credentials and configurations\nare read from an .env file.\n\n## First usage (_single usage_)\n\n```bash\n$ git clone git@gitlab.rsm-support.de:helper/dbhelper.git \u0026\u0026 cd dbhelper\n$ cp .env.dist .env\n```\n\nAdjust the variables according to the system.\n\n## Show version\n\n```bash\n$ bin/table-dumper -V\n```\n\n**Outputs**:\n\n```\ntable-dumper 0.1.0 (2022-05-21 22:48:12) - Björn Hempel \u003cbjoern@hempel.li\u003e\n```\n\n## Show help\n\n```bash\n$ bin/table-dumper -h\n```\n\n**Outputs**:\n\n```bash\n\ntable-dumper 0.1.0 (2022-05-21 22:48:12) - Björn Hempel \u003cbjoern@hempel.li\u003e\n\nUsage: table-dumper [options...] sync\n\n -e,    --env-path                    Contains the environment path (default .env)\n\n -dcs,  --disable-column-statistics   Disable mysql column statistics\n\n\n -t,    --with-time                   Also outputs the time to each log entry (default: false).\n -v,    --verbose                     Set output to verbose (default: false).\n -c,    --color                       Colored output (default: false).\n -d,    --debug                       Set to debug mode. No longer performs any actions.\n                                      Shows only the commands. (default: false).\n -u,    --update-version              Shows this script with updated version read from VERSION\n -h,    --help                        Shows this help.\n -V,    --version                     Shows the version number.\n\n```\n\n## Dumping database tables\n\nThe command only shows the commands and does not execute them:\n\n```bash\n$ bin/table-dumper dump -d\n```\n\n## Backup and sync db and folder to remote\n\n```bash\n$ bin/table-dumper dump\n```\n\n## Show log\n\n```bash\n$ bin/table-dumper -l\n```\n\n**Outputs**:\n\n```\nPRINT THE LAST 20 LOG LINES\n===========================\n\nPath: /path/to/project/table-dumper.log\n\n───────────────────────────────────────────────────────────────────────────────\n[2022-05-21 23:29:54] - info - Dump and write SQL file \"/path/to/project/fixtures/db/place_a.sql\".\n[2022-05-21 23:29:54] - success - Snapshot is done: /path/to/project/fixtures/db/place_a.sql (Size: 9.4M)\n[2022-05-21 23:29:54] - info - Dump and write SQL file \"/path/to/project/fixtures/db/place_h.sql\".\n[2022-05-21 23:29:54] - success - Snapshot is done: /path/to/project/fixtures/db/place_h.sql (Size: 12M)\n[2022-05-21 23:29:54] - info - Dump and write SQL file \"/path/to/project/fixtures/db/place_l.sql\".\n[2022-05-21 23:29:54] - success - Snapshot is done: /path/to/project/fixtures/db/place_l.sql (Size: 2.4M)\n[2022-05-21 23:29:54] - info - Dump and write SQL file \"/path/to/project/fixtures/db/place_p.sql\".\n[2022-05-21 23:29:55] - success - Snapshot is done: /path/to/project/fixtures/db/place_p.sql (Size: 61M)\n[2022-05-21 23:29:55] - info - Dump and write SQL file \"/path/to/project/fixtures/db/place_r.sql\".\n[2022-05-21 23:29:55] - success - Snapshot is done: /path/to/project/fixtures/db/place_r.sql (Size: 284K)\n[2022-05-21 23:29:55] - info - Dump and write SQL file \"/path/to/project/fixtures/db/place_s.sql\".\n[2022-05-21 23:29:55] - success - Snapshot is done: /path/to/project/fixtures/db/place_s.sql (Size: 44M)\n[2022-05-21 23:29:55] - info - Dump and write SQL file \"/path/to/project/fixtures/db/place_t.sql\".\n[2022-05-21 23:29:56] - success - Snapshot is done: /path/to/project/fixtures/db/place_t.sql (Size: 19M)\n[2022-05-21 23:29:56] - info - Dump and write SQL file \"/path/to/project/fixtures/db/place_u.sql\".\n[2022-05-21 23:29:56] - success - Snapshot is done: /path/to/project/fixtures/db/place_u.sql (Size: 4.0K)\n[2022-05-21 23:29:56] - info - Dump and write SQL file \"/path/to/project/fixtures/db/place_v.sql\".\n[2022-05-21 23:29:56] - success - Snapshot is done: /path/to/project/fixtures/db/place_v.sql (Size: 2.2M)\n[2022-05-21 23:29:56] - skipped - Local: Table \"refresh_tokens\" ignored by config (rule: refresh_tokens).\n[2022-05-21 23:29:56] - skipped - Local: Table \"user\" ignored by config (rule: user).\n───────────────────────────────────────────────────────────────────────────────\n```\n\n## Installation as a submodule\n\n```bash\ngit submodule add git@github.com:bjoern-hempel/table-dumper.git submodules/table-dumper\n```\n\n```bash\nmkdir bin \u0026\u0026 cd bin \u0026\u0026 ln -s ../submodules/table-dumper/bin/table-dumper . \u0026\u0026 cd ..\n```\n\n```bash\nbin/table-dumper -V\n```\n\n**Outputs**:\n\n```bash\ntable-dumper 0.1.0 (2022-05-21 22:48:12) - Björn Hempel \u003cbjoern@hempel.li\u003e\n```\n\n## Update version\n\n```bash\nbin/table-dumper -u \u003e bin/table-dumper\n```\n\n## Import dump\n\nCurrently, the import is not yet supported, but can be done manually.\n\n```bash\nmysql -h[host] -u[user] -p[password] -P[port] [dbname] -e \"source [path-to-sql-file]\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjoern-hempel%2Ftable-dumper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjoern-hempel%2Ftable-dumper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjoern-hempel%2Ftable-dumper/lists"}