{"id":13493741,"url":"https://github.com/lstellway/mysqldump-remote","last_synced_at":"2025-09-06T04:42:34.581Z","repository":{"id":143665273,"uuid":"111017125","full_name":"lstellway/mysqldump-remote","owner":"lstellway","description":"Bash utility for dumping databases from remote hosts","archived":false,"fork":false,"pushed_at":"2017-11-16T21:13:01.000Z","size":4,"stargazers_count":19,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-14T03:03:55.893Z","etag":null,"topics":["bash-script","mysqldump","remote","ssh"],"latest_commit_sha":null,"homepage":null,"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/lstellway.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-11-16T20:10:37.000Z","updated_at":"2021-04-28T19:55:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"f83fd3d4-769e-4862-8697-fedf6977c5c2","html_url":"https://github.com/lstellway/mysqldump-remote","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lstellway/mysqldump-remote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lstellway%2Fmysqldump-remote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lstellway%2Fmysqldump-remote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lstellway%2Fmysqldump-remote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lstellway%2Fmysqldump-remote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lstellway","download_url":"https://codeload.github.com/lstellway/mysqldump-remote/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lstellway%2Fmysqldump-remote/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273858855,"owners_count":25180771,"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-09-06T02:00:13.247Z","response_time":2576,"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":["bash-script","mysqldump","remote","ssh"],"created_at":"2024-07-31T19:01:18.362Z","updated_at":"2025-09-06T04:42:34.559Z","avatar_url":"https://github.com/lstellway.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Remote MySQL Dump\n\nBash utility for executing a `mysqldump` on a remote host with options for using a `.env` file and connecting via `ssh`\n\n## Usage\n\u003emysqldump-remote [OPTIONS] -u=user --mysql-database=database_name --env=\"./.env\"\n\n## Options\n  - **-u|--mysql-user**\n    - Database user name\n  - **-h|--mysql-host** (Default: \"localhost\")\n    - Database host\n  - **-p|--mysql-password**\n    - Database password\n  - **-d|--mysql-database**\n    - Database name\n  - **--ssh-user**\n    - SSH User\n  - **--ssh-host**\n    - SSH Host\n  - **--ssh-key**\n    - SSH Key\n  - **-c|--compress** (Default: no)\n    - Compress output file with gunzip\n  - **-o|--output** (Default: current directory)\n    - Directory to output saved file\n  - **-e|--env**\n    - Environment variables file location ([.env format](https://github.com/vlucas/phpdotenv#usage))\n  - **-f|--file-name**\n    - Output file name (disregards prefix and suffix)\n  - **--prefix**\n    - Output file prefix\n  - **--suffix**\n    - Output file suffix\n  - **-h|--help**\n    - Display help and exit\n  - **-v|-vv|--verbose**\n    - Verbose output\n    - *-v|--verbose* will output verbose details of the MySQL dump\n    - *-vv* (very verbose) will output verbose SSH connection details\n\n## ENV File Variables\n  - **MYSQL_HOST**\n    - MySQL host or IP address\n  - **MYSQL_USER**\n    - MySQL database user\n  - **MYSQL_PWD**\n    - MySQL user password\n  - **MYSQL_DB**\n    - MySQL database name\n  - **SSH_USER**\n    - SSH user\n  - **SSH_HOST**\n    - SSH host name or IP address\n  - **SSH_KEY**\n    - Path to SSH public key\n  - **SSH_PORT**\n    - Port to use to connect to remote server via SSH\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flstellway%2Fmysqldump-remote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flstellway%2Fmysqldump-remote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flstellway%2Fmysqldump-remote/lists"}