Question

I am trying to migrate settings from Magento version 1.9.2.2 to 2.0.0 CE

mage2\vendor\magento\data-migration-tool\etc\ce-to-ce\1.9.2.2\config.xml content

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="../../config.xsd">
    <steps mode="settings">
        <step title="Settings step">
            <integrity>Migration\Step\Settings</step>
            <data>Migration\Step\Stores</step>
        </step>
    </steps>
    <source version="1.9.2.2">
        <database host="localhost" name="magento9" user="root"/>
    </source>
    <destination version="2.0.2">
        <database host="localhost" name="mage2" user="root"/>
    </destination>
    <options>
        <crypt>
            <key><![CDATA[1bc968bd50b96ee18388feaed3bc1f1d]]></key>
        </crypt>
        <map_file>etc/ce-to-ce/1.9.2.2/map.xml</map_file>
        <settings_map_file>etc/ce-to-ce/1.9.2.2/settings.xml</settings_map_file>
    </options>
</config>

settings.xml is copied from path mage2\vendor\magento\data-migration-tool\etc\ce-to-ce

Added settings.xml.dist and map.xml.dist at location mage2\vendor\magento\data-migration-tool\etc

In CMD prompt I am executing commands:

D:\xamp\htdocs\mage2\> php bin/magento migrate:settings {vendor\magento\data-migration-tool\etc\ce-to-ce\1.9.2.2\config.xml}

But it throws an exception

[Migration\Exception]
 Invalid config filename: {vendor/magento/data-migration-tool/etc/ce-to-ce/1
 .9.2.2/config.xml}
 migrate:settings [-r|--reset] config
  1. How do I run the command successfully to migrate settings?
  2. Have I missed any step required for migration?

Please guide.

Reference links http://devdocs.magento.com/guides/v2.0/migration/migration-tool-install.html http://devdocs.magento.com/guides/v2.0/migration/migration-tool-configure.html http://devdocs.magento.com/guides/v2.0/migration/migration-migrate-settings.html

Was it helpful?

Solution

For Data migration from Magento 1 to Magento 2.

Your first step is Setting migrate,

command is:

php bin/magento migrate:settings /var/www/html/{{magento2}}/vendor/magento/data-migration-tool/etc/ce-to-ce/{{magento1 version}}/config.xml

All System -> Configuration settings are migrated in setting migrate. After completion of setting migrate, You need to check in Magento 2 Stores -> Configuration setting.

In migrate setting, From your database table, core_config_data have affected.

All Magento 1 settings are migrated to magento 2.

Thanks.

OTHER TIPS

Change to the following directory:

your-Magento2-root-dir/vendor/magento/data-migration-tool/etc/migration-edition/ce-or-version

if you are on Linux run this command cp config.xml.dist config.xml or on window run this command copy config.xml.dist config.xml

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top