Magento 2 has definitely brought in some features which improves the interface and overall experience for Magento developers and users. Have you ever considered moving from Magento 1 to Magento 2 ? Here is an overview of this process, which is referred to as migration. Just like an upgrade between different versions of Magento 1.X , the level of effort to migrate from Magento 1 to Magento 2 depends upon how you have built your site and its level of customization.
Migration from Magento 1.x to Magento 2 involves four components: data, extensions, themes, and customizations.
- Data: There are many differences in the structure and format of data that is stored in database between Magento 1 and Magento 2. Each version of Magento has its own unique changes in data structure. To ease up the Migration process, Magento released an official Data Migration Tool that will help developers to transfer store data from older versions of Magento to the latest Magento 2. The Data Migration Tool transfers all of your key product, customer, and order data, store configurations, promotions and more to Magento 2.
- Extensions and custom code: If you want to migrate some of your extensions , you might need to install these extensions adapted for Magento 2. Reach out to your extension providers to see if they have been ported yet. Custom code is not ported because it cannot be automated.
- Themes and Customizations: Themes and customizations of your magento 1 store cannot be automatically migrated to Magento 2. Developers will need to make changes to their themes and customizations for Magento 2.
Data Migration Tool
The Data Migration Tool is a command-line interface (CLI) that provides verification, progress tracking, logging, and testing functions. Data Migration Tool transfers data from Magento 1 to Magento 2 database and it is intended to protect data integrity and reduce downtime during migration. You can install it from either repo.magento.com or from a GitHub repository.
The migration tool operates in three modes to transfer and adapt data from Magento 1 to Magento 2:
- Settings mode: You should migrate settings first. This mode migrates stores; websites; and all possible configuration settings like shipping, payment, some tax settings etc.
- Data mode: Migrates database assets in bulk from Magento 1 to Magento 2 database.
- Delta mode: Incremental migration enables you to migrate only the changes made in Magento 1 since the last time you migrated data.
Each mode consists of several steps that perform tasks specific to the mode. Each step initially checks data integrity in the Magento 1 and Magento 2 databases and, after verification succeeds, it performs the transfer of data.
There are some types of data like media, storefront design, admin users and ACLs (Access Control Lists) that need to be manually migrated. Media files can simply be copy/pasted to appropriate locations in Magento 2. You must manually re-create all credentials for web services APIs , all administrative users and associate them with access privileges.
The Migration Process
To have a successful migration from Magento 1 to Magento 2 , refer to the following steps:
- Set up a Magento 2.0 system using a topology and design that at least matches your existing Magento 1 system.
- Replicate your Magento 1.x database and use this data for your migration.
- Install Magento 2.
- Check that the Data Migration tool has a network access to connect the Magento 1 and Magento 2 databases. Open ports in your firewall so the migration tool can communicate with the databases.
- Stop all activity in the Magento 1.x Admin Panel. Activity cannot resume until your Magento 2 store goes live.
- Stop all Magento 1.x cron jobs.
- Use the migration tool to migrate settings and websites.
- Copy your Magento 1.x media files to Magento 2.0.
- Use Data Migration Tool to migrate your data from Magento 1 database to Magento 2 database.
- Use the magento indexer:reindex command to reindex all indexers.
- Thoroughly test your Magento 2.0 site.
- Start the incremental migration. Incremental migration enables you to migrate only the changes made in Magento 1 since the last time you migrated data. Test your Magento 2 site during this time so you can catch any issues as soon as possible.
Now your Magento 2 site is up-to-date with Magento 1.
- Put Magento 1 in maintenance mode and permanently stop all Admin activities.
- Start Magento 2 cron jobs.
- Flush all Magento 2 cache types and reindex all Magento 2 indexers.
- Perform any final verification of your Magento 2 site.
- Change DNS, load balancers, and so on to point to new production hardware.
And that’s it !!! Your Magento 2 store is ready to use. You and can resume all activities.
For full information please see the official Migration Guide. Share your experience in comments, and we’ll be happy to help you. 🙂 😀