Learn how to migrate data and settings from Magento 1 to Magento 2 in this knowledge base.
If you face any such errors, you can:
- Install the corresponding extensions in Magento 2 the same as in Magento 1. If it exists, then,
- Add <ignore> tags to the map.xml file to ignore them.
Now all set to go, run the Data Migration Tool again after resolving the issues.
Let’s start: migrate data and settings from Magento 1 to Magento 2
Before start migrating your data, follow the below steps for setting up the file system,
Step 1: First log in to the Magento server, who has the permission to write to the Magento file system.
Step2: Switch to the Magento file system owner.
In case, if you are using the bash shell, then it will be easy. So that the following syntax will be helpful in switching to the Magento file system owner,
Enter the following command to switch:
su <Magento file system owner> -s /bin/bash -c <command>
Add <your Magento install dir>/bin to
your system PATH. to run the Magento commands from any directory.
Use the following ways to run the commands:
cd <your Magento install dir>/bin and run them as ./magento <command name>
php <your Magento install dir>/bin/magento <command name>
Migrate data/settings from Magento 1 to Magento 2
Run the data migration command
To migrate data, use the following command:
Command usage:
bin/magento migrate:data [-r|--reset] {<path to config.xml>}
where
[-r|–reset] is an optional argument for testing migration.
Migrate settings/data from Magento 1 to Magento 2
Run the settings’ migration command:
To start migrating settings, run:
bin/magento migrate:settings [-r|--reset] {<path to config.xml>}
where:
[-r|–reset] is an optional argument that starts the migration from the beginning. You can use this argument for testing migration.
– The command should be:
sudo bin/magento migrate:settings
/var/www/magento2/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.3.0/config.xml
Migrate changes from Magento 1 to Magento 2
– Run the incremental migration command:
To start migrating incremental changes, run:
bin/magento migrate:delta [-r|--reset] {<path to config.xml>}
where:
[-r|–reset] is an optional argument that starts migration from the beginning. You can use this argument for testing migration.
{<path to config.xml>} is the absolute file system path to config.xml,
– The command should be:
sudo bin/magento migrate:delta /var/www/magento2/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.3.0/config.xml
When the above process runs, the Magento 2 Data migration tool will save all the current progress. In case of any error, do contact us without any hesitation.
Our Magento expert team is awaiting your response. To provide you an extensive consultation on the Magento 2 migration service.
Related KBs
Leave a Reply