Migrate settings
Overview
The Settings
mode migrates stores, websites, and system configuration like shipping, payment, tax settings, etc.
According to our data migration order, you should migrate settings first.
Before you start: routine preparations
-
Log in to Magento server as the file system owner.
-
Change to the Magento
/bin
directory or make sure it is added to your system PATH.
See the First steps section for more details.
Run the settings migration command
To start migrating settings, run:
1
bin/magento migrate:settings [-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 the migration tool’sconfig.xml
file; this argument is required.
This command does not migrate all configuration settings. Verify all settings in the Magento 2 Admin before proceeding.
The Migration completed
message is displayed after the settings are transferred successfully.
Configure custom migration rules
You may ignore, rename or change the system configurations when migrating settings. For this, specify your custom rules in the settings.xml
file.
-
Log in to your Magento server as, or switch to, the Magento file system owner.
-
Change to the following directory:
1
<your Magento 2 install dir>/vendor/magento/data-migration-tool/etc/<edition-to-edition>
For example, if Magento 2 is installed in
/var/www/html
, you’ll findsettings.xml.dist
in one of the following directories:1 2 3
/var/www/html/vendor/magento/data-migration-tool/etc/opensource-to-commerce /var/www/html/vendor/magento/data-migration-tool/etc/commerce-to-commerce /var/www/html/vendor/magento/data-migration-tool/etc/opensource-to-opensource
-
To create a
settings.xml
file from the provided sample, run:1
cp settings.xml.dist settings.xml
-
Make your changes in
settings.xml
. -
Specify the new name of the settings file for mapping. To do that, change the
<settings_map_file>
tag in thepath/to/config.xml
file.
For more details, see the Settings migration mode section of the Tool’s specification.