Launched March 26, 2024
ms-bkp

ms-bkp

MySQL Database Backup Script 🗄️

FreeOpen SourceCLIWorkflow automation5,880 impressions#14 of its week

Simplify your backup process with `ms-bkp`. Clone, set up globally, and secure your databases effortlessly. If 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.

A Bash script to backup MySQL databases as separate compressed files on Linux, macOS, or Windows.

for
Developers and DBAs who need simple command-line MySQL backups.
pricing
open source
license
MIT
vinugawade/ms-bkp 11 0Shellupdated 2 years ago
  • v1.0.0ms-bkp v1.0.03 years ago
works withMySQLBashLinuxmacOSWindows

Key features

6 features of ms-bkp
  • Export databases — Creates compressed backup files for each MySQL database.
  • Selective export — Export only a specified database with the –only option.
  • Skip databases — Exclude chosen databases from backup using the –skip flag.
  • Custom destination — Define the backup folder with –dest (default ~/Downloads).
  • Cross-platform — Works on Linux, macOS, and Windows systems.
  • Global install — Install script globally for use from any terminal location.

Use cases

  • Automate daily backups of all production MySQL databases.
  • Create ad-hoc backups of a single database before a migration.
  • Exclude test databases from backup runs to save space.
  • Store backups in a custom directory for integration with other scripts.

ms-bkp FAQ

How do I install ms-bkp globally?+

Clone the repo, move the script to /usr/local/bin (or another location), make it executable, and add the directory to your $PATH.

Can I backup only one database?+

Yes, use the –only (or -o) option followed by the database name.

How do I skip certain databases?+

Provide a comma-separated list to the –skip (or -s) option.

Where are the backup files saved by default?+

They are saved to ~/Downloads unless you specify a different path with –dest.

Is ms-bkp compatible with Windows?+

Yes, the script can be run on Windows environments that support Bash (e.g., Git Bash, WSL).

Summarized by DevHunt from vinugawade.github.io · Sep 29, 2026. Details may change; check the official site.