3

is it possible to exclude CMS blocks and CMS pages from migrateion magento1 to magento2 using Magento Migration Tool? We only need products, categories, rewiews, orders, customer ...

Thanks! Martin

2
  • yes you can migrate using migration tool Commented May 21, 2019 at 12:20
  • I need to exlude them!
    – matin
    Commented May 21, 2019 at 12:53

2 Answers 2

7
data-migration-tool/etc/opensource-to-opensource/1.9.3.2/map.xml.dist

Rename This File To map.xml

In Your config.xml file Chnage this :-

From :-

<map_file>etc/opensource-to-opensource/1.9.3.2/map.xml.dist</map_file>

To :-

<map_file>etc/opensource-to-opensource/1.9.3.2/map.xml</map_file>

In Your map.xml File Just Add Table Which You Want to Ignore under the source document_rules Tag

<source>
    <document_rules>
        <ignore>
            <document>cms_block</document>
        </ignore>
        <ignore>
             <document>cms_block_store</document>
        </ignore>
        <ignore>
             <document>cms_page</document>
        </ignore>
        <ignore>
             <document>cms_page_store</document>
        </ignore>
        <ignore>
             <document>core_config_data</document>
        </ignore>           
    </document_rules>
</source>

No Other Changes In Map.xml File Just Add Your Table

11
  • Thanks - but I have already installed and migrated data successfull. I just need to know how to except "cms blocks and pages" from migration. I do not need cms blocks and pages on new magento 2 installation
    – matin
    Commented May 21, 2019 at 12:52
  • i am not sure with but after migration you can truncate that table Commented May 21, 2019 at 12:56
  • cms_block,cms_block_store,cms_page,cms_page_store 4 table for blocks and pages Commented May 21, 2019 at 12:56
  • thanks. but this is we can not do. we have new theme installed and migration tool is overwriting pages and blocks. we do need them at all to migrate
    – matin
    Commented May 21, 2019 at 13:16
  • please check answer Commented May 21, 2019 at 14:32
0
  1. Find all cms from

    data-migration-tool/etc/edition-to-edition/version/map.xml

  2. Ignore them in:

    vendor/magento/data-migration-tool/etc/edition-to-edition/settings.xml

So you need copy or rename settings.xml.dist to settings.xml

Good article you can find here:

https://www.goivvy.com/blog/magento-2-migration

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.