Is it possible to move settings like product, customers and categories attributes, store settings and others that doesn't include data

  • product, customers, orders, categories, etc ...

Instead of having to move the DB from dev or testing

  • Hi @Mohammed, did any of the suggestions help you to figure out a solution?
    – 7ochem
    Commented Mar 14, 2017 at 13:45

3 Answers 3


Use built in Magento2 Backup System

php bin/magento setup:backup --code --db

You could build a small custom module with a Setup script (an UpgradeData.php) script that does all these via code (see forexample http://inchoo.net/magento-2/setup-scripts-magento-2/).

You could set config values, create/update whole attribute sets, create websites, store groups and store views, create CMS blocks, etc...

We use this method within dev teams so everyone will have the same setup without ever having to exchange database dumps. Also this makes it available under your version control system (GIT) and it distributes easily further down the road (testing env, uat env and production env).


I don't know exact solution but i can suggest that you need to create custom scripts. One for export from database and other for import into database.

Or you can use extensions


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.