Skip to content

Instantly share code, notes, and snippets.

@Kamik
Forked from paales/n98-magerun.yaml
Created April 11, 2016 09:49
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 Kamik/fbbdc85bb778692531ac25c82f7a3853 to your computer and use it in GitHub Desktop.
Save Kamik/fbbdc85bb778692531ac25c82f7a3853 to your computer and use it in GitHub Desktop.
Export a Magento database without the products or without the categories, place this file in app/etc/. Docs about creating a custom dump command: https://github.com/netz98/n98-magerun/wiki/Stripped-Database-Dumps
commands:
N98\Magento\Command\Database\DumpCommand:
table-groups:
- id: products
description: Skip all product tables.
tables: >
catalog_category_product*
catalog_compare_item
catalog_product_*
cataloginventory_stock_*
catalogrule_affected_product
catalogrule_product*
catalogsearch_*
- id: categories
description: Skip all category tables.
tables: >
catalog_category_*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment