Skip to content

Instantly share code, notes, and snippets.

@nicdoye
Created February 2, 2013 13:07
Show Gist options
  • Select an option

  • Save nicdoye/4697265 to your computer and use it in GitHub Desktop.

Select an option

Save nicdoye/4697265 to your computer and use it in GitHub Desktop.

Revisions

  1. nicdoye created this gist Feb 2, 2013.
    2 changes: 2 additions & 0 deletions mysqlbackup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    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