Question
How to migrate from a Linux server with custom hosting to Plesk?
Answer
In case of migration from the following platforms, consider contacting Plesk Professional Services for assistance on a paid basis:
- HDE Controller 6
- H-Sphere
- Interworx
- ISPmanager 4 Pro / 5 Business
- PPA (Plesk Automation or Parallels Plesk Automation)
- WebControl Panel
Otherwise, follow the instructions below.
Note: Migrating from servers with custom hosting can only be done via the command line, and not via the Plesk interface. It is not possible to automatically generate a hosting description file.
- Log in to the destination Plesk server via SSH.
- Install Plesk Migrator if it is not installed yet.
-
Prepare the hosting description file. Name the file
hosting-description.[yaml/json](depending on the chosen format) and place it in the following directory:CONFIG_TEXT: /usr/local/psa/admin/sbin/modules/panel-migrator
The file must contain the list of clients, subscriptions, addon domains, mailboxes, etc., to be transferred from the source server. Sample hosting description files can be found here.
-
Prepare the migrator configuration file. Name the file
config.iniand place it in the same directory:CONFIG_TEXT: /usr/local/psa/admin/sbin/modules/panel-migrator
The file must include the configuration and access information for the source server. A sample configuration file can be found here.
-
Generate the migration list:
CONFIG_TEXT: /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator generate-migration-list
The resulting file will be named
migration-listand placed in the/usr/local/psa/var/modules/panel-migrator/sessions/migration-session/directory. This file contains the list of objects (customers, domains, etc.) to be migrated. - Edit the
migration-listfile manually if needed (e.g., remove domains you do not want to migrate). -
(Optional) Validate the hosting description file:
CONFIG_TEXT: /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator validate
-
Start the migration:
CONFIG_TEXT: /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator transfer-accounts
-
(Optional) Perform an additional content sync (rsync) to catch changes made during migration:
CONFIG_TEXT: /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator copy-content
-
(Recommended) Check the operability of the migrated objects:
CONFIG_TEXT: /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator test-all
- Log in to the destination Plesk server via SSH.
- Install Plesk Migrator if it is not installed yet.
-
Manually copy web and mail content from the source server to the destination. You can place this content in a temporary directory on the destination server (e.g.,
/root/migration_temp/). - Create dumps of the databases on the source server and manually copy them to the destination server.
-
Prepare the hosting description file (
hosting-description.yaml) in the following directory:CONFIG_TEXT: /usr/local/psa/admin/sbin/modules/panel-migrator
Crucial Step: When defining the component paths in this file, you must specify the local paths on the destination server where you copied the data in Step 3 (e.g.,
/root/migration_temp/domain.com/httpdocs).Find sample hosting description files here.
-
Prepare the configuration file (
config.ini) in the same directory.Note: Since you are migrating from local data, the configuration will differ slightly. Refer to documentation for "Migrating from local storage" if applicable, or ensure the config points to the local filesystem driver.
-
Generate the migration list:
CONFIG_TEXT: /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator generate-migration-list
- Edit the
migration-listfile to remove unwanted domains or re-assign plans. -
(Optional) Validate the hosting description file:
CONFIG_TEXT: /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator validate
-
Start the migration (import):
CONFIG_TEXT: /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator transfer-accounts
Comments
Please sign in to leave a comment.