How to migrate Windows webhosting to Plesk

28 Feb 2019
Niels Wolf
15
0
< Back

If you have administrative access to the source server, follow these steps:

  1. Log in to the destination Plesk server via RDP .
  2. Make sure that Plesk Migrator is installed.
  3. Prepare the hosting description file. Name the file
    hosting-description.[yaml/json]
    , depending on the chosen format, and place it in the
    %plesk_dir%\admin\plib\modules\panel-migrator\backend
    directory. The file must contain the list of clients, subscriptions, addon domains, mailboxes, etc. to be transferred from the source server.
  4. Prepare the migrator tool configuration file. Name the file
    config.ini
    and place it in the
    %plesk_dir%\admin\plib\modules\panel-migrator\backend
    directory. The file must include the configuration and access information for the source server.
  5. Generate the migration list by running the following command:

    %plesk_dir%admin\plib\modules\panel-migrator\backend\plesk-migrator.bat generate-migration-list

    The resulting file will be named
    migration-list
    and will be placed in the
    %plesk_dir%admin\plib\modules\panel-migrator\backend\
    directory. The migration list is a list of objects (customer and reseller accounts, service plans, domains, and so on) 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. (Optional) Validate the hosting description file by running the following command:

    “%plesk_dir%admin\plib\modules\panel-migrator\backend\plesk-migrator.bat” validate

  8. Run the following command to begin the migration:

    %plesk_dir%admin\plib\modules\panel-migrator\backend\plesk-migrator.bat transfer-accounts

  9. (Optional) Perform an additional content sync with the following command:

    %plesk_dir%admin\plib\modules\panel-migrator\backend\plesk-migrator.bat copy-content

    This makes sure that changes to hosting content that may have happened on the source server while the migration was running are mirrored on the destination server. If you want to re-sync only specific types of content, use the
    plesk-migrator.bat copy-web-content
    ,
    plesk-migrator.bat copy-mail-content
    , or
    plesk-migrator.bat copy-db-content
    commands.

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

    %plesk_dir%admin\plib\modules\panel-migrator\backend\plesk-migrator.bat test-all

If you do not have administrative access to the source server, follow these steps:

  1. Log in to the destination Plesk server via RPD .
  2. Make sure that Plesk Migrator is installed.
  3. Manually copy the web and mail content data from the source server to the destination. For web content, copy the document root directories of the domains you want to migrate with all included subdirectories and files. The content can be placed anywhere on the destination server.
  4. Create dumps of the databases belonging to the websites you want to migrate, then manually copy them to the destination server.
  5. Prepare the hosting description file. Name the file
    hosting-description.[yaml/json]
    , depending on the chosen format, and place it in the
    %plesk_dir%\admin\plib\modules\panel-migrator
    directory. The file must contain the list of clients, subscriptions, addon domains, mailboxes, etc. to be transferred from the source server.
  6. Prepare the migrator tool configuration file. Name the file
    config.ini
    and place it in the
    %plesk_dir%\admin\plib\modules\panel-migrator\backend
    directory. The file must include the configuration and access information for the source server.
  7. Generate the migration list by running the following command:

    %plesk_dir%admin\plib\modules\panel-migrator\backend\plesk-migrator.bat generate-migration-list

    The resulting file will be named
    migration-list
    and placed in the
    %plesk_dir%admin\plib\modules\panel-migrator\backend\
    directory. The migration list contains the list of objects (customer and reseller accounts, service plans, domains, and so on) to be migrated.

  8. 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.
  9. (Optional) Validate the hosting description file by running the following command:

    “%plesk_dir%admin\plib\modules\panel-migrator\backend\plesk-migrator.bat” validate

  10. Run the following command to begin the migration:

    %plesk_dir%admin\plib\modules\panel-migrator\backend\plesk-migrator.bat transfer-accounts