コマンドライン経由で移行する
Plesk for Linux、cPanel、Confixx、Pro Control Panel から Plesk for Linux サーバに移行するには:
移行先の Plesk サーバに SSH 経由でログインします。
Plesk Migrator がインストールされていることを確認します。インストールされていない場合、こちらの指示に従います。
-
/usr/local/psa/admin/plib/modules/panel-migrator/backend/conf/samples/ディレクトリから/usr/local/psa/var/modules/panel-migrator/conf/ディレクトリへ、サンプル構成ファイルをコピーします。以下のサンプルファイルからいずれかを選択します。plesk-unix.simple.ini、cpanel.simple.ini、confixx.simple.ini、ppcpl.simple.iniは基本的なサンプルファイルで、移行に最低限必要な情報だけが含まれます。plesk-unix.ini, cpanel.ini、confixx.ini、ppcpl.iniは、総合的でコメントが豊富な構成ファイルであり、幅広い移行オプションを構成できます。
サンプル構成ファイルの内容はこちらで確認できます。ファイルをコピーしてから名前を
config.iniに変えます。 config.iniファイルを編集して、移行元サーバと移行先サーバの IP アドレスと、移行元サーバの root ユーザの SSH パスワードを指定します(移行に最低限必要な情報です)。追加の設定を指定することもできます。詳しくは「Plesk Migrator 構成ファイルを編集する」トピックを参照してください。-
以下のコマンドを実行して、移行リストを生成します。
/usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator generate-migration-list生成されたファイルは
migration-listという名前になり、/usr/local/psa/var/modules/panel-migrator/sessions/migration-session/ディレクトリに保存されます。移行リストとは、移行対象オブジェクト(顧客およびリセラーアカウント、サービスプラン、ドメインなど)のリストです。 移行リストを編集します。移行したくないドメインの削除や、移行するドメインのサービスプランへの割り当て、顧客アカウントから顧客アカウントへの再割り当てなどができます。
ウェブサイトで使用すべき IP アドレスを手動で割り当てたい場合は、新しい IP アドレスを指定します。デフォルトで、IP マッピングは自動的に実行されます。IP マッピングについて詳しくは、こちらをお読みください。
-
以下のコマンドを実行して、移行前のチェックを実行します。
/usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator checkコマンドを実行すると、移行中に発生する可能性がある問題(もしあれば)のリストが生成されます。「check」コマンドは、移行リストが変更されるたびに実行する必要があります。
-
以下のコマンドを実行して移行を開始します。
/usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator transfer-accounts -
(推奨)移行が終了した後で以下のコマンドを実行して、移行先サーバで移行されたオブジェクトが機能することをチェックします。
/usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator test-all
Plesk for Windows または Helm 3 から Plesk for Windows サーバに移行するには:
移行先の Plesk サーバに RDP 経由でログインし、コマンドプロンプトを開きます。
Plesk Migrator がインストールされていることを確認します。インストールされていない場合、こちらの指示に従います。
-
%plesk_dir%admin\plib\modules\panel-migrator\backend\conf\samples\ディレクトリから<PLESK_DATA_DIRECTORY>\var\modules\panel-migrator\conf\ディレクトリへ、サンプル構成ファイルをコピーします。サーバ上で<PLESK_DATA_DIRECTORY>の場所を確認するには、以下のコマンドを実行します。reg query "HKLM\SOFTWARE\Plesk\PSA Config\Config" /v PRODUCT_DATA_D /reg:32以下のサンプルファイルからいずれかを選択します。
plesk-windows.simple.iniは基本的なサンプルファイルで、移行に最低限必要な情報だけが含まれます。plesk-windows.iniは総合的でコメントが豊富なサンプル構成ファイルであり、幅広い移行オプションを構成できます。
サンプル構成ファイルの内容はこちらで確認できます。ファイルをコピーしてから名前を
config.iniに変えます。 config.iniファイルを編集して、移行元サーバと移行先サーバの IP アドレスと、移行元サーバの管理者ユーザの SSH パスワードを指定します(移行に最低限必要な情報です)。追加の設定を指定することもできます。詳しくは「Plesk Migrator 構成ファイルを編集する」トピックを参照してください。-
以下のコマンドを実行して、移行リストを生成します。
%plesk_dir%admin/plib/modules/panel-migrator/backend/plesk-migrator.bat generate-migration-list生成されたファイルは
migration-listという名前になり、<PLESK_DATA_DIRECTORY>\var\modules\panel-migrator\sessions\migration-session\ディレクトリに保存されます。移行リストに含まれるのは、移行対象のオブジェクト(顧客およびリセラーアカウント、サービスプラン、ドメインなど)の一覧です。 移行リストを編集します。移行したくないドメインの削除や、移行するドメインのサービスプランへの割り当て、顧客アカウントから顧客アカウントへの再割り当てなどができます。
ウェブサイトで使用すべき IP アドレスを手動で割り当てたい場合は、新しい IP アドレスを指定します。デフォルトで、IP マッピングは自動的に実行されます。IP マッピングについて詳しくは、こちらをお読みください。
-
(推奨)以下のコマンドを実行して、移行前のチェックを実行します。
%plesk_dir%admin/plib/modules/panel-migrator/backend/plesk-migrator.bat checkコマンドを実行すると、移行中に発生する可能性がある問題(もしあれば)のリストが生成されます。
-
以下のコマンドを実行して移行を開始します。
%plesk_dir%admin/plib/modules/panel-migrator/backend/plesk-migrator.bat transfer-accounts -
(推奨)移行が終了した後で以下のコマンドを実行して、移行先サーバで移行されたオブジェクトが機能することをチェックします。
%plesk_dir%admin/plib/modules/panel-migrator/backend/plesk-migrator.bat test-all
Using command‑line options with Plesk Migrator
When migrating via the command line, you can pass additional options to the plesk-migrator executable.
These options allow you to control logging, profiling, data fetching, content transfer, licensing checks, and more.
To view all available options at any time, run:
plesk-migrator check --help
Common options:
Option |
Description |
|---|---|
|
Show help and exit. |
|
Run the command asynchronously. |
|
Hide log entries in console output. |
|
Increase debug level. |
|
Disable or enable writing the profiling report. |
|
Path to a file whose creation triggers a safe shutdown. |
|
Use a specific progress task ID. |
Migration behavior options:
Option |
Description |
|---|---|
|
Continue migration even if pre-migration errors occur (intended for Plesk Support only). |
|
Create new webspaces using only the resources required by the corresponding subscriptions. |
|
Fetch data again from the source instead of using cached data. |
|
Do not check the source or target services for potential issues. |
|
Skip license validation on the target server. |
Migration list options:
Option |
Description |
|---|---|
|
Specify the migration list file (default: |
|
Migration list format (text by default). |
|
Continue the migration even if the migration list contains errors. |
IP mapping:
Option |
Description |
|---|---|
|
Provide a file that maps source IPs to target IPs. |
Content transfer options:
Option |
Description |
|---|---|
|
Do not transfer web files. |
|
Do not transfer email messages. |
|
Do not transfer database content. |
Additional cCopy options:
Option |
Description |
|---|---|
|
Copy server-wide mail settings (supported on Plesk 12.0 and later). |
|
Copy admin profiles (supported on Plesk 12.0 and later). |
|
Install missing extensions (supported on Plesk 17.0 and later). |
|
Copy server-wide extension settings (supported on Plesk 17.0 and later). |