Skip to content

Instantly share code, notes, and snippets.

@OdinsHat
Forked from collymore/MageDbExport.sh
Last active August 29, 2015 14:18
Show Gist options
  • Save OdinsHat/4eb02ec8b1dd40dc4104 to your computer and use it in GitHub Desktop.
Save OdinsHat/4eb02ec8b1dd40dc4104 to your computer and use it in GitHub Desktop.

Revisions

  1. OdinsHat revised this gist Mar 30, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion MageDbExport.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    grep 'user\|dbname\|pass' local.xml | tr -d '\n' | sed 's/<username><\!\[CDATA\[\(.*\)\]\]><\/username>.*<password><\!\[CDATA\[\(.*\)\]\]><\/password>.*<dbname><\!\[CDATA\[\(.*\)\]\]><\/dbname>/ mysqldump -u\1 -p\2 \3 > \3.sql/g' | sh
    grep 'user\|dbname\|pass' app/etc/local.xml | tr -d '\n' | sed 's/<username><\!\[CDATA\[\(.*\)\]\]><\/username>.*<password><\!\[CDATA\[\(.*\)\]\]><\/password>.*<dbname><\!\[CDATA\[\(.*\)\]\]><\/dbname>/ mysqldump -u\1 -p\2 \3 > ..\/\3.sql/g' | sh
  2. @collymore collymore renamed this gist Mar 30, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @collymore collymore created this gist Mar 30, 2015.
    1 change: 1 addition & 0 deletions Mage DB export
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    grep 'user\|dbname\|pass' local.xml | tr -d '\n' | sed 's/<username><\!\[CDATA\[\(.*\)\]\]><\/username>.*<password><\!\[CDATA\[\(.*\)\]\]><\/password>.*<dbname><\!\[CDATA\[\(.*\)\]\]><\/dbname>/ mysqldump -u\1 -p\2 \3 > \3.sql/g' | sh