Skip to content
Marcel Haazen edited this page Sep 19, 2017 · 4 revisions

mysqlb.sh is a Bash based MySQL backup script

It checks what databases it can see and dumps each of them in the defined folder and zips them

The naming of the backups are "database_name-day_month_year.sql"

Each backup gets stored in a folder named the date of the backup

The script requires the following data:

  • username
  • password
  • host
  • Backup location (Must exists)

At the end the backup of each database is individually compressed in a GZ archive

Clone this wiki locally