Migrating via the Command Line

  1. Log in to the destination Plesk server via SSH.
  2. Make sure that Plesk Migrator is installed. If it is not, install it following the instructions here.
  3. Copy a sample configuration file from the /usr/local/psa/admin/plib/modules/panel-migrator/backend/conf/samples/ directory to the /usr/local/psa/var/modules/panel-migrator/conf/ directory. Choose one of the following sample files:
    1. The confixx.simple.ini sample is basic and contains only the bare minimum of information necessary for the migration.
    2. The confixx.ini sample is a comprehensive and well-commented configuration file enabling you to configure various migration options.

    For your convenience, the contents of the configuration file samples can be found here. After copying the file, rename it to config.ini.

  4. Edit the config.ini file to specify the IP addresses of the source and destination servers, and also the source server's root user SSH password (the bare minimum necessary for migration). You can also specify additional settings - see the Editing the Plesk Migrator Configuration File topic for more information.
  5. Generate the migration list by running the following command:

    /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator generate-migration-list

    The resulting file will be named migration-list and placed in the /usr/local/psa/var/modules/panel-migrator/sessions/migration-session/ directory. The migration list contains the list of objects to be migrated.

  6. Edit the migration list. You can remove the domains you do not want to migrate, assign domains you want to migrate to service plans, or re-assign them between customer accounts.
  7. Specify the new IP addresses that should be used by websites, if you want to assign the addresses manually. By default, IP mapping is carried out automatically. You can read about IP mapping in more detail here.
  8. (Recommended) Perform the pre-migration check by running the following command:

    /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator check

    Running the command will produce a list of potential issues you may encounter during the migration (if any).

  9. Run the following command to begin the migration:

    /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator transfer-accounts

  10. (Recommended) After the migration is finished, run the following command to check the operability of the migrated objects on the destination server:

    /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator test-all