Skip to content

Instantly share code, notes, and snippets.

@pengjiayou
Forked from nicdoye/mysqlbackup.sh
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pengjiayou/4ea08c04edf02713744f to your computer and use it in GitHub Desktop.
Save pengjiayou/4ea08c04edf02713744f to your computer and use it in GitHub Desktop.
mkdir ~/app-root/data/tmp
mysqldump -h $OPENSHIFT_MYSQL_DB_HOST -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} --password="$OPENSHIFT_MYSQL_DB_PASSWORD" --all-databases > ~/app-root/data/tmp//all.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment