Skip to content

Instantly share code, notes, and snippets.

@gsomoza
Created September 9, 2016 13:31
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 gsomoza/be935827f23e98e1218064fc2c34b256 to your computer and use it in GitHub Desktop.
Save gsomoza/be935827f23e98e1218064fc2c34b256 to your computer and use it in GitHub Desktop.
Slim Magento 1 DB Dump
mysqldump --no-data -h localhost -u root -p schema | gzip > structure.sql.gz
mysqldump --no-create-info -h localhost -u root -p
--ignore-table=schema.adminnotification_inbox \
--ignore-table=schema.aw_core_logger \
--ignore-table=schema.dataflow_batch_export \
--ignore-table=schema.dataflow_batch_import \
--ignore-table=schema.log_customer \
--ignore-table=schema.log_quote \
--ignore-table=schema.log_summary \
--ignore-table=schema.log_summary_type \
--ignore-table=schema.log_url \
--ignore-table=schema.log_url_info \
--ignore-table=schema.log_visitor \
--ignore-table=schema.log_visitor_info \
--ignore-table=schema.log_visitor_online \
--ignore-table=schema.index_event \
--ignore-table=schema.report_event \
--ignore-table=schema.report_compared_product_index \
--ignore-table=schema.report_viewed_product_index \
--ignore-table=schema.catalog_compare_item \
--ignore-table=schema.catalogindex_aggregation \
--ignore-table=schema.catalogindex_aggregation_tag \
--ignore-table=schema.catalogindex_aggregation_to_tag \
schema | gzip > data.sql.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment