#!/bin/bash
# Shell script to backup mysql databases.
# Edited by Anton Todorov, <anton.todorov89@gmail.com>.
# Backs up all tables of all databases on a specified host to sql files, (can be gzipped if needed).
# One backup per datestamp, so if you run the script ten times in one day, it will create ten different backups for that day.
# You can also exclude some databases from backup. Version 3.0 - Mar. 18, 2015
# It is not necessary, but you can run it as root! A function to check for root privilegues should probably be added here.