Инструмент миграции Magento 2 - Перенос настроек с 1.9-2.0 CE
Я пытаюсь перенести настройки из версии Magento 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
содержание
<?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
копируется из пути mage2\vendor\magento\data-migration-tool\etc\ce-to-ce
Добавлены settings.xml.dist
и map.xml.dist
в местоположении mage2\vendor\magento\data-migration-tool\etc
В командной строке я выполняю команды:
D:\xamp\htdocs\mage2\> php bin/magento migrate:settings {vendor\magento\data-migration-tool\etc\ce-to-ce\1.9.2.2\config.xml}
Но это создает исключение
[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
- Как успешно выполнить команду для переноса настроек?
- Пропустил ли я какой-либо шаг, необходимый для миграции?
Пожалуйста руководство.
Ссылки на ссылки 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
2 answers
Для переноса данных из Magento 1 в Magento 2.
Ваш первый шаг - настройка миграции,
Команда:
php bin/magento migrate:settings /var/www/html/{{magento2}}/vendor/magento/data-migration-tool/etc/ce-to-ce/{{magento1 version}}/config.xml
Все параметры System -> Configuration
переносятся в разделе настройка переноса.
После завершения переноса настроек вам необходимо проверить настройку Magento 2 Stores -> Configuration
.
В настройках переноса из таблицы базы данных core_config_data
повлияло.
Все настройки Magento 1 перенесены в magento 2.
Спасибо.
Перейдите в следующий каталог:
your-Magento2-root-dir/vendor/magento/data-migration-tool/etc/migration-edition/ce-or-version
Если вы работаете в Linux, выполните эту команду cp config.xml.dist config.xml
или в окне выполните эту команду copy config.xml.dist config.xml