Create backup_multiple_db_to_git.sh

You can do cronjob like:
0 0 * * * /path_to_comand/backup_to_git.sh