This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# dump-all-databases.sh | |
# | |
# | |
# Backup each MySQL database on a MySQL server into a separate file. | |
# Optionally files can be gzipped (dbname.sql.gz) | |
# | |
# Usage: dump_all_databases [ -u username -o output_dir -h hostname -x exclude -z ] | |
# | |
# -u username to connect MySQL server |