Preparing for Migration

After you have installed the migration tool, you need to carry out the following steps:

  1. Specify the settings related to migration, source servers, and target servers.
  2. Provide access to source servers.
  3. Create a list of objects to move.

In addition to that, you also need to install a valid license on the target Plesk server and ensure that it has enough disk space.

Specifying the Settings Related to Migration, Source Servers, and Target Servers

General migration settings, as well as the settings of source and target servers should be specified in a single configuration file, which must be passed as an argument into each migration tool's command. This file (usually named config.ini) can be placed in any location; however, we recommend placing it into the conf / directory - which is the default location where the migration tool will search for it. The configuration file is treated as a common .ini file, so it must conform to the appropriate syntax.

The following is an example of a configuration file.

[GLOBAL]
source-type: plesk
target-type: plesk
source-plesks: source

[plesk]
ip: 10.52.xx.xx
os: windows
panel-username: admin
panel-password: setup

[source]
ip: 10.52.xx.xx
os: windows
panel-username: admin
panel-password: setup
windows-username: Administrator
windows-password: setup

Examples of configuration files for different types of source hosting platforms are located in conf/samples/. So, you just need to take an appropriate file and use it as a basis.

General Migration Settings

Each configuration file has the [global] section, which specifies the common migration settings:

There are also settings specific to different types of source control panels.

Target Server Settings

The settings for access to the target Plesk server should be specified in the section named [plesk] and must include the following:

Note that if you want to run the migration tool on Windows under a user other than Administrator, you need to turn off UAC

Source Server Settings

As we mentioned earlier, information about access to each source server should be specified in a separate section of a configuration file. Depending on the type of the operating system, the following settings must be specified:

If a source server is running Unix, you also need to specify the following settings:

If a source server is running Windows, you also need to specify the following settings:

Providing Access to Source Servers

After specifying the settings for access to the source and target server in the configuration file, make sure that the servers are accessible.

For Unix servers, open the following ports:

For Windows servers, open the following ports:

Creating a List of Objects to Move

After you have installed and configured the migration tool, you need to specify the objects that should be transferred. You can do so by using a migration list. It is a configuration file, describing, as a structured list, which domains should be transferred, with which account (customer or reseller) they should be associated, and to which service plan on the target Plesk server they should be assigned. Let's take a look at the migration list example.

# Admin subscriptions and customers

Plan: Unlimited

administrator.com

Customer: customer1

Plan: Default Domain

customer1.com

Reseller Plan: Default Reseller

Reseller: reseller1

Plan: Gold Hosting

reseller1.com

Customer: customer2

Plan: Silver Hosting

customer2.com

Let’s see how such a list will be interpreted by the migration tool for each domain:

You can prepare manually the migration list according to the logic described above, or you can generate it based on the data collected from source servers, as described in detail in the corresponding section of this guide. To generate a migration list automatically, execute the following command:

panel-migrator generate-migration-list config.ini

Where: