Skip to content

Instantly share code, notes, and snippets.

@slomo
Created February 9, 2012 23:16
Show Gist options
  • Save slomo/1784170 to your computer and use it in GitHub Desktop.
Save slomo/1784170 to your computer and use it in GitHub Desktop.
#!/bin/bash
TARGET="$HOME/test"
DATABASES=$( cat ./enabledDBs )
for DATABASE in ${DATABASES}; do
mysqldump ${DATABASE} > ${TARGET}/${DATABASE}.mysql
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment