Close [x]

Migrate changes

Edit this page on GitHub

Migrate incremental changes

Incremental migration enables you to migrate only the changes made in Magento 1 since the last time you migrated data. These changes are data that was added through the storefront by customers (created orders, reviews, changes in customer profiles etc.) and all operations with orders in the Magento Admin.

First steps

  1. Log in to the Magento server as, or switch to, a user who has permissions to write to the Magento file system. One way to do this is to switch to the Magento file system owner.

    If you use the bash shell, you can also use the following syntax to switch to the Magento file system owner and enter the command at the same time:

    su <Magento file system owner> -s /bin/bash -c <command>
    
  2. To run Magento commands from any directory, add <your Magento install dir>/bin to your system PATH.

    Because shells have differing syntax, consult a reference like unix.stackexchange.com.

    bash shell example for CentOS:

    export PATH=$PATH:/var/www/html/magento2/bin
    

You can also run the commands in the following ways:

  • cd <your Magento install dir>/bin and run them as ./magento <command name>
  • php <your Magento install dir>/bin/magento <command name>

<your Magento install dir> is a subdirectory of your web server's docroot. Need help locating the docroot? Click here.

In addition to the command arguments discussed here, see Common arguments.

Run the incremental migration command

To migrate incremental changes, use the following command:

Command usage:

bin/magento migrate:delta [-r|--reset] {<path to config.xml>}

where

{<path to config.xml>} is the absolute file system path to config.xml; this argument is required.

[-r|--reset] is an optional argument that starts migration from the beginning. You can use this argument for testing migration.

Incremental migration runs continuously until you stop it by pressing CTRL+C.

Please note that in this mode Data Migration Tool migrates data created only by Magento鈥檚 own modules and is not responsible for the code or extensions made by third-party developers. If these extensions created some data in the storefront database and the merchant wants to have this data in Magento 2 - config files of Data Migration Tool should be created and modified. Please check Data Migration Tool Internal Specification for more information.