Last active
August 2, 2016 19:54
-
-
Save gnuWatchesU/041447cb1d374a04d7efb6df4210b580 to your computer and use it in GitHub Desktop.
Copy magento database omitting unneeded tables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep CDATA <srcdom>/httpdocs/shop/app/etc/local.xml | |
grep CDATA <dstdom>/httpdocs/shop/app/etc/local.xml | |
mysqldump -u <srcdb> -p --no-data -h <dbhost> <srcdb> | mysql -u <dstdb> -p -h <dbhost> <dstdb> | |
mysqldump -u <srcdb> -p --ignore-table=<srcdb>.dataflow_batch_export --ignore-table=<srcdb>.dataflow_batch_import --ignore-table=<srcdb>.log_customer --ignore-table=<srcdb>.log_quote --ignore-table=<srcdb>.log_summary --ignore-table=<srcdb>.log_summary_type --ignore-table=<srcdb>.log_url --ignore-table=<srcdb>.log_url_info --ignore-table=<srcdb>.log_visitor --ignore-table=<srcdb>.log_visitor_info --ignore-table=<srcdb>.log_visitor_online --ignore-table=<srcdb>.report_viewed_product_index --ignore-table=<srcdb>.report_compared_product_index --ignore-table=<srcdb>.report_event -h <dbhost> <srcdb> | mysql -u <dstdb> -p -h <dbhost> <dstdb> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment