Skip to content

Instantly share code, notes, and snippets.

View daniel-werner's full-sized avatar

Daniel Werner daniel-werner

View GitHub Profile
#!/bin/bash
# Daniel Verner
# CarrotPlant LLC
# 2011
# Backup each mysql databases into a different file, rather than one big file
# Optionally files can be gzipped (dbname.gz)
#
# Usage: dump_all_databases [ -u username -o output_dir -z ]
#
# -u username to connect mysql server