cPanel 迁移的配置文件

该配置文件只包括执行迁移必需的基本信息:

[GLOBAL]
source-type: cpanel
source-servers: cpanel
target-type: plesk

[plesk]
ip:
os: unix

[cpanel]
ip:
os: unix
ssh-password:

该配置文件包含高级设置,能够调整迁移的很多方面:

[GLOBAL]
# This section defines migrator's global settings.
 
# [mandatory, non-modifiable] source-type
# Source servers' product type.
#
# This is a template of configuration file for migration from Plesk Panel to
# Plesk Panel. For other source or target panels, browse other provided
# configuration templates and pick one that best suits your source type.
source-type: cpanel
 
# [mandatory] source-servers
# A comma-separated list of the sections, that describe source panel
# servers. 
#
# The order of the section names in this list is significant: a server,
# which section is listed earlier, has priority in conflict resolution.
source-servers: cpanel

# [mandatory, non-modifiable] target-type
# Target servers product type.
target-type: plesk

# [optional] session-dir
# A directory for migration tool's temporary files.
# If not specified, temporary files will be put into './migration-session'.
# session-dir: migration-session
 
# [optional] zones-ttl
# The time in seconds, which migration tool sets as the SOA minimum TTL and
# refresh interval on a new DNS server.
# If not specified, default value is assumed: 120
# zones-ttl: 120
 
# [optional] external-dns-server
# An IPv4 address of an external DNS server that allows recursive DNS queries.
# Migration tool uses the specified address to test whether general Internet
# users can obtain the correct DNS records for the transferred domains. If
# nothing is specified, migration tool will use Google DNS server (8.8.8.8).
# If 'none' is specified, migration tool will skip this test.
# external-dns-server: 8.8.8.8

# [optional] mail-messages-delta-limit
# The post-migration mail checks compare the number of messages in the source
# and the target mailboxes. If the number of messages differs more than it is
# specified in "mail-message-count-max-difference", it is considered an error.
# If the option is not specified, default value is assumed: 10
# mail-messages-delta-limit: 10

# [optional] website-availability-check-timeout
# This is the timeout, that migrator uses, when testing web site availability
# after migration. If not specified, default value is assumed: 30
# website-availability-check-timeout: 30

# [optional] log-message-context-length
# When logging a multiline output (API request, response), show only top N
# and last N lines. Default value is 10. Set it to 0, if you need to log full
# multiline message.
# log-message-context-length: 10

# [optional] use-hosting-analyser
# Set this option to 'True', if you need to analyse hosting and detect optimal
# algorithm to copy content. Default value of this option is 'True'.
# use-hosting-analyser: True

# [optional] hosting-analysis-ttl
# The time in seconds, which migration tool sets as minimum for hosting
# analysis results.
# If not specified, default value is assumed: 900
# hosting-analysis-ttl: 900

# [optional] skip-migrator-updates
# Do not check migrator repository for updates. Default value is 'False'
# skip-migrator-updates: False
 
[plesk]
# This section defines target panel settings.
 
# [mandatory] ip
# An IPv4 address of the target Plesk Panel server.
ip:

# [mandatory] os
# Server's operating system type, should be 'unix' for migration from cpanel.
os: unix

# [optional] panel-username
# Panel administrator's login. If not specified, 'admin' is used.
# panel-username: admin

# [optional] panel-password
# Panel administrator password. If not specified, it is automatically detected.
# panel-password: setup

# [optional] unix-session-dir
# A directory for temporary files on Plesk Panel for Linux target server. If
# not specified, temporary files will be put into '/tmp'
# unix-session-dir: /tmp

# [optional] is-local
# Whether migration tools are working on the same server as target Plesk.
# Default is true.
# is-local: true

# [optional] apache-restart-interval
# Minimum time interval, in seconds, between Apache restarts during a
# migration. If this interval is short, Apache will restart too often. This
# will cause long downtimes on Plesk target server. If this interval is long,
# existing users of Plesk target server will have to wait longer for their
# changes to be applied. To skip changing Apache restart interval set value to
# 'none'. If not specified, migration tool will skip changing the Apache
# restart interval.
# apache-restart-interval: none

[cpanel]
# This section defines settings of source Plesk Panel server 'pfu1'.

# [mandatory] ip
# IP address or host name of the target server.
ip:

# [mandatory] os
# Server's operating system type, should be 'unix' for migration from cpanel.
os: unix

# [optional] ssh-username
# User name of the privileged system user on this Plesk server. If not specified, 'root' is used.
# ssh-username: root

# [optional] ssh-auth-type
# SSH authentication type.
# There are two authentication types supported: 'password' or 'key'. Default is 'password'.
# ssh-auth-type: password

# [optional] ssh-password
# Password of the privileged system user on this Plesk server.
# You must specify it, if you select SSH authentication type ‘password’.
# Note that the hash mark in password is treated as a regular symbol.
ssh-password:

# [optional] ssh-key
# SSH private key file name. You can specify it if you select SSL
# authentication type ‘key’. If not specified, "id_rsa" or "id_dsa" keys from
# the directory '~/.ssh' are used.
# ssh-key: id_dsa

# [optional] copy-mail-content
# This option specifies whether mail content should be copied from the server
# (the 'full' value) or not ('none'). If not specified, mail content will be
# copied.
# copy-mail-content: full

# [optional] copy-web-content
# This option specifies whether web content should be copied from the server
# (the 'full' value) or not ('none'). If not specified, web content will be
# copied.
# copy-web-content: full

# [optional] session-dir
# A directory for temporary files.
# If not specified, temporary files are put into /tmp.
# session-dir: /tmp

# [optional] postgres-password
# Password of PostgreSQL superuser
# postgres-password: