配置文件样本

配置文件样本是 Plesk Migrator 分发包中的一部分,位于以下目录:

  • (On Linux) /usr/local/psa/admin/plib/modules/panel-migrator/backend/conf/samples/
  • (On Windows) %plesk_dir%admin\plib\modules\panel-migrator\backend\conf\samples\
[GLOBAL]
# For custom panel, specify "custom" source type
source-type: custom
# We're migrating to Plesk, so specify "plesk" as target type
target-type: plesk
# We have single Unix server, specify configuration file's section name
# where we are going to describe the server
sources: myserver
# We have 1 MySQL database server
db-servers: mysql1
 
# Settings of target Plesk panel
[plesk]
# Specify IP address of your Plesk panel server
ip: 10.52.146.180
# We have Unixserver, so specify "windows" there
os: unix
 
# Settings of source server
[myserver]
# Specify location of hosting description file, created on the previous step
hosting-description: hosting-description.yaml
# Specify IP address of the source Windows server
ip: 10.52.160.21
# We have Unix server, so specify "windows" there
os: unix
# Specify password of super user (root) on the source server
ssh-password: setup
 
# Settings of source MySQL server
[mysql1]
# Type: specify 'mysql' for MySQL
type: mysql
# MySQL server's hostname or IP address
host: 10.52.1.17
# MySQL server's port
port: 3306
# MySQL administrator's login
 login: admin
# MySQL administrator's password
password: setup