{"id":21526087,"url":"https://github.com/nelson6e65/bash-mysql-helper","last_synced_at":"2026-04-11T17:44:01.128Z","repository":{"id":88643417,"uuid":"171442214","full_name":"nelson6e65/bash-mysql-helper","owner":"nelson6e65","description":"Import, export and make backups of MySQL/MariaDB databases using  .env file","archived":false,"fork":false,"pushed_at":"2020-09-23T14:57:11.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T04:58:16.829Z","etag":null,"topics":["backups","bash","basher","database","dotenv","env","gzip","laravel","mariadb","mariadb-databases","mysql","mysql-helper","mysqldump","sql"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/nelson6e65.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}},"created_at":"2019-02-19T09:11:37.000Z","updated_at":"2020-10-19T11:12:50.000Z","dependencies_parsed_at":"2024-03-25T16:47:36.447Z","dependency_job_id":null,"html_url":"https://github.com/nelson6e65/bash-mysql-helper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nelson6e65/bash-mysql-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelson6e65%2Fbash-mysql-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelson6e65%2Fbash-mysql-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelson6e65%2Fbash-mysql-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelson6e65%2Fbash-mysql-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nelson6e65","download_url":"https://codeload.github.com/nelson6e65/bash-mysql-helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelson6e65%2Fbash-mysql-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31689762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["backups","bash","basher","database","dotenv","env","gzip","laravel","mariadb","mariadb-databases","mysql","mysql-helper","mysqldump","sql"],"created_at":"2024-11-24T01:42:07.132Z","updated_at":"2026-04-11T17:44:01.096Z","avatar_url":"https://github.com/nelson6e65.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mysql-helper\n\nImport, export and make backups of MySQL/MariaDB databases.\n\n\n## Installing\n\n### Easy with [Basher](https://github.com/basherpm/basher)\n\n```sh\nbasher install nelson6e65/bash-mysql-helper\n```\nDone!\n\n\n### Configuring\n\n`mysql-helper` uses a `.env` file to read database credentials.\n\nExample of a `.env` file content:\n\n```sh\n# Optional\nDB_HOST='localhost'\nDB_PORT=3306\n\n# Mandatory\nDB_DATABASE=\nDB_USERNAME=\nDB_PASSWORD=\n\n# Other stuffs not used by `mysql-helper`...\n```\n\n\n## Usage\n\n### Backup Database\n\nIt creates a backup file: `{database}_{date}.sql.gz` file.\n\n```sh\nmysql-helper b\nmysql-helper backup\n```\n\nYou can ignore backup creation by using `--no-backup`\n\n### Exporting Database to SQL\n\nExports DB to `{database}.sql` file.\n\n```sh\nmysql-helper e\nmysql-helper export\n# mysql-helper -e # DEPRECATED\n# mysql-helper --export # DEPRECATED\n```\n\n\n### Importing SQL to Database\n\nImport a database content from `{database}.sql` file.\n\n```sh\nmysql-helper i\nmysql-helper import\n# mysql-helper -i # DEPRECATED\n# mysql-helper --import # DEPRECATED\n```\n\n\u003e Note: By default it will run `backup` automatically. To avoid this, pass `--no-auto-backup`.\n\n### Customize target dir\n\nBy default, it will use the working directory to search files. In order to use a different target-dir:\n\n```sh\nmysql-helper (i|e|b) \u003ctarget-dir\u003e\nmysql-helper (i|e|b) --target \u003ctarget-dir\u003e # DEPRECATED\n```\n\n### More options\n\nUse --help to see more options.\n\n```sh\nmysql-helper --help\n```\n\n## Credits\n\nSome tools used:\n- https://github.com/matejak/argbash\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnelson6e65%2Fbash-mysql-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnelson6e65%2Fbash-mysql-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnelson6e65%2Fbash-mysql-helper/lists"}