Plesk for Linux、cPanel、Confixx、Pro Control Panel から Plesk for Linux サーバに移行するには:

  1. 移行先の Plesk サーバに SSH 経由でログインします。

  2. Plesk Migrator がインストールされていることを確認します。インストールされていない場合、こちらの指示に従います。

  3. /usr/local/psa/admin/plib/modules/panel-migrator/backend/conf/samples/ ディレクトリから /usr/local/psa/var/modules/panel-migrator/conf/ ディレクトリへ、サンプル構成ファイルをコピーします。以下のサンプルファイルからいずれかを選択します。

    1. plesk-unix.simple.inicpanel.simple.iniconfixx.simple.inippcpl.simple.ini は基本的なサンプルファイルで、移行に最低限必要な情報だけが含まれます。

    2. plesk-unix.ini, cpanel.iniconfixx.inippcpl.ini は、総合的でコメントが豊富な構成ファイルであり、幅広い移行オプションを構成できます。

    サンプル構成ファイルの内容はこちらで確認できます。ファイルをコピーしてから名前を config.ini に変えます。

  4. config.ini ファイルを編集して、移行元サーバと移行先サーバの IP アドレスと、移行元サーバの root ユーザの SSH パスワードを指定します(移行に最低限必要な情報です)。追加の設定を指定することもできます。詳しくは「Plesk Migrator 構成ファイルを編集する」トピックを参照してください。

  5. 以下のコマンドを実行して、移行リストを生成します。

    /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/ ディレクトリに保存されます。移行リストとは、移行対象オブジェクト(顧客およびリセラーアカウント、サービスプラン、ドメインなど)のリストです。

  6. 移行リストを編集します。移行したくないドメインの削除や、移行するドメインのサービスプランへの割り当て、顧客アカウントから顧客アカウントへの再割り当てなどができます。

  7. ウェブサイトで使用すべき IP アドレスを手動で割り当てたい場合は、新しい IP アドレスを指定します。デフォルトで、IP マッピングは自動的に実行されます。IP マッピングについて詳しくは、こちらをお読みください。

  8. 以下のコマンドを実行して、移行前のチェックを実行します。

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

    コマンドを実行すると、移行中に発生する可能性がある問題(もしあれば)のリストが生成されます。「check」コマンドは、移行リストが変更されるたびに実行する必要があります。

  9. 以下のコマンドを実行して移行を開始します。

    /usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator transfer-accounts
    
  10. (推奨)移行が終了した後で以下のコマンドを実行して、移行先サーバで移行されたオブジェクトが機能することをチェックします。

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

Plesk for Windows または Helm 3 から Plesk for Windows サーバに移行するには:

  1. 移行先の Plesk サーバに RDP 経由でログインし、コマンドプロンプトを開きます。

  2. Plesk Migrator がインストールされていることを確認します。インストールされていない場合、こちらの指示に従います。

  3. %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
    

    以下のサンプルファイルからいずれかを選択します。

    1. plesk-windows.simple.ini は基本的なサンプルファイルで、移行に最低限必要な情報だけが含まれます。

    2. plesk-windows.ini は総合的でコメントが豊富なサンプル構成ファイルであり、幅広い移行オプションを構成できます。

    サンプル構成ファイルの内容はこちらで確認できます。ファイルをコピーしてから名前を config.ini に変えます。

  4. config.ini ファイルを編集して、移行元サーバと移行先サーバの IP アドレスと、移行元サーバの管理者ユーザの SSH パスワードを指定します(移行に最低限必要な情報です)。追加の設定を指定することもできます。詳しくは「Plesk Migrator 構成ファイルを編集する」トピックを参照してください。

  5. 以下のコマンドを実行して、移行リストを生成します。

    %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\ ディレクトリに保存されます。移行リストに含まれるのは、移行対象のオブジェクト(顧客およびリセラーアカウント、サービスプラン、ドメインなど)の一覧です。

  6. 移行リストを編集します。移行したくないドメインの削除や、移行するドメインのサービスプランへの割り当て、顧客アカウントから顧客アカウントへの再割り当てなどができます。

  7. ウェブサイトで使用すべき IP アドレスを手動で割り当てたい場合は、新しい IP アドレスを指定します。デフォルトで、IP マッピングは自動的に実行されます。IP マッピングについて詳しくは、こちらをお読みください。

  8. (推奨)以下のコマンドを実行して、移行前のチェックを実行します。

    %plesk_dir%admin/plib/modules/panel-migrator/backend/plesk-migrator.bat check
    

    コマンドを実行すると、移行中に発生する可能性がある問題(もしあれば)のリストが生成されます。

  9. 以下のコマンドを実行して移行を開始します。

    %plesk_dir%admin/plib/modules/panel-migrator/backend/plesk-migrator.bat transfer-accounts
    
  10. (推奨)移行が終了した後で以下のコマンドを実行して、移行先サーバで移行されたオブジェクトが機能することをチェックします。

    %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

-h, --help

Show help and exit.

--async

Run the command asynchronously.

--quiet

Hide log entries in console output.

--debug

Increase debug level.

--disable-profiling / --enable-profiling

Disable or enable writing the profiling report.

--stop-mark-file <file>

Path to a file whose creation triggers a safe shutdown.

--progress-task-id <id>

Use a specific progress task ID.

Migration behavior options:

Option

Description

--ignore-pre-migration-errors

Continue migration even if pre-migration errors occur (intended for Plesk Support only).

--allocate-only-required-resourcesc

Create new webspaces using only the resources required by the corresponding subscriptions.

--reload-source-data

Fetch data again from the source instead of using cached data.

--skip-services-checks

Do not check the source or target services for potential issues.

--skip-license-checks

Skip license validation on the target server.

Migration list options:

Option

Description

--migration-list-file <file>

Specify the migration list file (default: $session_dir/migration-list).

--migration-list-format <text|json>

Migration list format (text by default).

--ignore-migration-list-errors

Continue the migration even if the migration list contains errors.

IP mapping:

Option

Description

--ip-mapping-file <file>

Provide a file that maps source IPs to target IPs.

Content transfer options:

Option

Description

--skip-copy-web-content

Do not transfer web files.

--skip-copy-mail-content

Do not transfer email messages.

--skip-copy-db-content

Do not transfer database content.

Additional cCopy options:

Option

Description

--copy-mail-settings

Copy server-wide mail settings (supported on Plesk 12.0 and later).

--copy-admin-profile

Copy admin profiles (supported on Plesk 12.0 and later).

--install-extensions

Install missing extensions (supported on Plesk 17.0 and later).

--copy-extensions-settings

Copy server-wide extension settings (supported on Plesk 17.0 and later).