{"id":24044609,"url":"https://github.com/vinugawade/ms-bkp","last_synced_at":"2025-04-22T01:13:14.103Z","repository":{"id":109736237,"uuid":"600283256","full_name":"vinugawade/ms-bkp","owner":"vinugawade","description":"Bash script to backup all mysql databases as separate compressed files.","archived":false,"fork":false,"pushed_at":"2025-01-10T04:24:20.000Z","size":18664,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T01:14:59.192Z","etag":null,"topics":["bash","bash-script","cli","command-line-tool","database","export","github","linux","macos","mysql","mysql-database","open-source","opensource","shell","shell-scripts","sql","utility","windows"],"latest_commit_sha":null,"homepage":"https://vinugawade.github.io/ms-bkp","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/vinugawade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.buymeacoffee.com/vinaygawade"]}},"created_at":"2023-02-11T02:27:57.000Z","updated_at":"2025-01-10T04:24:23.000Z","dependencies_parsed_at":"2024-01-21T03:23:33.898Z","dependency_job_id":"4f3e8cd6-d32c-47af-a8b3-5c844fbbe136","html_url":"https://github.com/vinugawade/ms-bkp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fms-bkp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fms-bkp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fms-bkp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fms-bkp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinugawade","download_url":"https://codeload.github.com/vinugawade/ms-bkp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249834793,"owners_count":21331989,"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":["bash","bash-script","cli","command-line-tool","database","export","github","linux","macos","mysql","mysql-database","open-source","opensource","shell","shell-scripts","sql","utility","windows"],"created_at":"2025-01-08T23:32:27.235Z","updated_at":"2025-04-20T01:15:13.118Z","avatar_url":"https://github.com/vinugawade.png","language":"Shell","funding_links":["https://www.buymeacoffee.com/vinaygawade"],"categories":[],"sub_categories":[],"readme":"# MySQL Database Backup Script 🗄️\n\n![Linux](https://img.shields.io/badge/Linux-white?style=flat-square\u0026logo=linux\u0026logoColor=black)\n![MacOS](https://img.shields.io/badge/MacOS-white?style=flat-square\u0026logo=apple\u0026logoColor=black)\n![Windows](https://img.shields.io/badge/Windows-white?style=flat-square\u0026logo=windows\u0026logoColor=black)\n![Windows](https://img.shields.io/badge/Bash-white?style=flat-square\u0026logo=gnu-bash\u0026logoColor=black)\n\n![GitHub issues](https://img.shields.io/github/issues/vinugawade/ms-bkp?style=flat-square)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/vinugawade/ms-bkp?style=flat-square)\n![GitHub last commit](https://img.shields.io/github/last-commit/vinugawade/ms-bkp?style=flat-square)\n\nIf you need to backup MySQL databases on a **Linux / MacOS / Windows** system, the `ms-bkp` script provides an easy-to-use solution. It allows you to export databases, skip specific ones, and set the destination path for the backup.\n\n---\n\n## Installation 🚀\n\n1. **Clone the Repository:**\n    - Clone the [ms-bkp](https://github.com/vinugawade/ms-bkp) repository to your local machine using the following command:\n\n    ```bash\n    git clone https://github.com/vinugawade/ms-bkp.git\n    ```\n\n2. **Move the Script to a Global Location:**\n    - Move the script to a global location on your system using the following command:\n\n    ```bash\n    sudo mv /location/of/ms-bkp /usr/local/bin\n    ```\n\n3. **Set Script Permissions:**\n    - Allow everyone to execute the script by choosing one of the following commands:\n\n    ```bash\n    sudo chmod +x /location/of/ms-bkp\n    ```\n\n    OR\n\n    ```bash\n    sudo chmod 0755 /location/of/ms-bkp\n    ```\n\n4. **Add to $PATH:**\n    - Add `/usr/local/bin` to your `$PATH`. If you use the Bash shell, execute the command:\n\n    ```bash\n    export PATH=$PATH:/usr/local/bin\n    ```\n\n    OR\n\n    ```bash\n    export PATH=$PATH:/location/of/ms-bkp\n    ```\n\n    This will set the variable name, potentially in a file like `~/.bash_profile`, `~/.bashrc`, or `~/.profile`. If you're unsure where to put it, `~/.bashrc` is a good choice.\n\n\u003e **You may need to restart your shell for this to take effect.**\n\n---\n\n## Script Options 🎛️\n\nThe `ms-bkp` script supports the following options:\n\n- `-u, --user`: MySQL username\n- `-p, --password`: MySQL password\n- `-o, --only`: Export only the specified database\n- `-s, --skip`: Skip specified databases during export (comma-separated)\n- `-d, --dest`: Destination path for the backup (default: ~/Downloads)\n\n---\n\n## Usage 🛠️\n\nNow you can use the script from anywhere in the terminal. Below are some examples.\n\n```bash\nms-bkp -u your_mysql_user -p your_mysql_password -o your_database_name\n```\n\n```bash\nms-bkp -u your_mysql_user -p your_mysql_password -s db1,db2,db3 -d /path/to/backup\n```\n\nCheck below attached GIF.\n\n![Run ms-bkp script](images/feature.gif)\n\n---\n\n## Maintainer 👨🏻‍💻\n\n\u003ca href=\"https://vinux.in\"\u003e\n  \u003cimg\n    src=\"https://api.daily.dev/devcards/c8457c6e687d407197d39cfaf513c57a.png?r=qqh\"\n    width=\"400\"\n    height=\"\"\n    alt=\"Vinay Gawade's Dev Card\"\n  /\u003e\n\u003c/a\u003e\n\nBuilt With 💙✨ By \u003ca href=\"https://github.com/vinugawade\"\u003eVinay Gawade\u003c/a\u003e.\n\n\u003ca href=\"https://www.linkedin.com/in/vinu-gawade\" target=\"_blank\"\u003e\n  \u003cimg\n    src=\"https://github.com/vinugawade/vinugawade/blob/main/assets/images/media/LinkedIn.png?raw=true\"\n    alt=\"LinkedIn Logo\"\n    width=\"150\"\n    height=\"\"\n  /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.buymeacoffee.com/vinaygawade\" target=\"_blank\"\u003e\n  \u003cimg\n    src=\"https://github.com/vinugawade/vinugawade/blob/main/assets/images/media/Bmc.png?raw=true\"\n    alt=\"Buy Me a Coffee Logo\"\n    width=\"150\"\n    height=\"\"\n  /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/VinuGawade\" target=\"_blank\"\u003e\n  \u003cimg\n    src=\"https://github.com/vinugawade/vinugawade/blob/main/assets/images/media/Twitter.png?raw=true\"\n    alt=\"Twitter Logo\"\n    width=\"150\"\n    height=\"\"\n  /\u003e\n\u003c/a\u003e\n\n---\n\n## License 🛂\n\n![LICENSE](https://img.shields.io/github/license/vinugawade/ms-bkp?style=flat-square)\n\nThis project is licensed under the [LICENSE](https://github.com/vinugawade/ms-bkp/blob/master/LICENSE) file associated with this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinugawade%2Fms-bkp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinugawade%2Fms-bkp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinugawade%2Fms-bkp/lists"}