How to migrate data and settings from Magento 1 to Magento 2?

Learn how to migrate data and settings from Magento 1 to Magento 2 in this knowledge base.

Migrating data using the Data Migration Tool will ease the data migration process. This tool will verify the tables and fields to ensure the consistency between Magento 1 and 2. If not, it will be very problematic to proceed to the next step. If there is any displacement in the tables and fields, it displays an error.

Example:  “Some extensions of Magento 1 that do not exist in the Magento 2 database

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

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

{<path to config.xml>} this argument requires to config.xml. It is an absolute file system path.

[-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.

{<path to config.xml>} is the absolute file system path to the migration tool’s config.xml file,

– 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

  1. How to install and configure the data migration tool in Magento 2?
    
  2. Common Magento 2 migration issues and their solutions 
  3. How do I upgrade to Magento 2 without changing URLs?

Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *