ispmanager 6 lite, pro, host

Data import: general information

Data import is the process of data transfer from one panel to another. In ispmanager users and their data can be imported from the following panels:

  • ispmanager 4 lite
  • ispmanager 5 lite
  • ispmanager 6 lite, pro, host, business
  • cPanel
  • Plesk

Import Wizard:

  • allows to set up data import step by step
  • checks the availability of the required software, settings and access on the receiving server and, if necessary, allows adding them during the import process (available in ispmanager 6 and ispmanager business 6)
  • generates a preliminary report with a list of entities that cannot be imported or will be imported with changes and a list of software to be installed
  • after starting the import, generates an import log with a list of entities and information about their import status

Import opportunities: Administrator vs. User

AdministratorUser
Can import data of users the administrator ownsCan only import their own data
Can use rsync or a backup copyCan use a backup copy only
Can install the required software, increase limits and enable the necessary access for users during the import processCan not install the required software, increase limits and enable access during the import process
Imported users will be created in the panel automatically, their limits will be preserved and appliedThe imported users' limits will not be applied. The user performing the import will become the owner of the imported data.
An administrator with superuser rights can import control panel settingsCannot import control panel settings

Import via rsync

The rsync technology allows importing users without using backups. This method saves disk space as it requires exactly as much space as occupied by the imported user and their data.

Import via rsync is not available from Plesk.

Import of entities

— the entity will be imported automatically, — the entity will NOT be imported automatically

If necessary, configure the required entities manually after import.

EntityImport from ispmanagerImport from cPanel
Users
Username and password

User quotas

User access to shell and SSL

Sites
Site as an entity

User files from the /home/username directory

Default website option

Site redirects

Site error pages

Domains
Domain names

DNS records

DNSSEC

Details

The DNSSEC settings will be imported if:

  1. PowerDNS is installed on both the source and the receiving server.
  2. DSNSSEC settings on both servers are the same.
  3. DNSSEC is enabled on the receiving server.

Mail
Mail domains

Mailboxes and emails

Autoresponder

Email filters

Mail redirects

Databases

Databases, database users and MySQL dumps

Details

Percona databases will be migrated if the source server has Percona DBMS installed. Otherwise, the database will be migrated to MySQL.

Database user password

Details

To log in to phpMyAdmin, enter the database user password from cPanel manually. For automatic authorization from the Databases section, enter and save the password in the database user form.

Databases of MySQL server remote profiles

PostgreSQL databases

PHP
PHP versions for sites

PHP handling modes

SSL
SSL certificates

CSR requests

Let's Encrypt service data

✔️

Details

Let's Encrypt certificates are imported as regular SSL certificates. They stay valid until they expire but are not renewed automatically. To enable auto-renewal, issue a new Let's Encrypt certificate for the site in ispmanager. Do it after the domain's DNS records point to the new server and before the old certificate expires.

Other
CRON jobs

FTP users

Manual edits to web server configuration files

Details

Manually edited configuration files are imported if the source server and the receiving server run the same web server, or if one of them runs Apache and the other runs LiteSpeed. Otherwise, standard configuration files will be generated for the imported sites based on the template.

Import from a backup copy

Import from backup requires a user backup to be created in the source panel. The exception is importing with a connection to a remote panel: in this case, a backup is created automatically during import.

Import from backup is available from the following sources and for the following panels:

 From a local computerFrom a local archive or catalogVia URLFrom a remote control panel
ispmanager 4

ispmanager 5, 6

ispmanager business 6

cPanel

Plesk

Import of entities

— the entity will be imported automatically, — the entity will NOT be imported automatically

If necessary, configure the required entities manually after import.

EntityImport from ispmanagerImport from cPanelImport from Plesk
Users 
Username and password

User quotas

User access to shell and SSL

Sites 
Site as an entity

User files from the /home/username directory

Default website option

Details

The option is imported if it was enabled by the user who owns the website. 

If the website was set as default by the administrator, the option is reset.

Site redirects

Site error pages

Domains 
Domain names

DNS records

Mail 
Mail domains

Mailboxes and emails

Autoresponder

Email filters

Mail redirects

Databases 

Databases, database users and MySQL dumps

Details

Percona databases will be migrated if the source server has Percona DBMS installed. Otherwise, the database will be migrated to MySQL.

Database user password

Details

To log in to phpMyAdmin, enter the database user password from cPanel manually.  For automatic authorization from the Databases section, enter and save the password in the database user form.

Databases of MySQL server remote profiles

PostgreSQL databases

PHP 
PHP versions for sites

PHP handling modes

SSL 
SSL certificates

CSR requests

Let's Encrypt service data

Details

Once imported, Let's Encrypt certificates will continue to work, but will not be automatically renewed. Reissue them immediately after the transfer or closer to the expiration date.

Other 
CRON jobs

FTP users

Manual edits to web server configuration files

Import from remote storage

User accounts can also be imported between ispmanager servers using remote storage.

Import is only possible between ispmanager panels of the same edition, for example from ispmanager lite, pro, host to ispmanager lite, pro, host or from ispmanager business to ispmanager business.

To import data: 

  1. On the source server add any empty remote storage.
  2. Create a backup copy of the users you wish to import into this storage.
  3. Remove the storage on the source server.
  4. Add the same storage on the receiving server.
  5. Restore the users on the receiving server.

Importing ispmanager settings

Settings import transfers the source panel settings to the receiving server, so you do not have to configure the new panel manually. Settings are imported separately from users or together with them. If both users and settings are selected, the settings are imported first.

Settings import is available:

  • to an administrator with superuser rights
  • when importing from ispmanager 5 lite, ispmanager 6 lite, pro, host, business
  • when importing via rsync or from a backup loaded from a remote panel

The settings are requested from the source panel during the import, so the source panel must be reachable over the network. Brand logos, permission files, and the menu configuration are copied via SSH.

The Policy, Resellers, and IPmanager integration settings items are available if ispmanager host is installed on the receiving server.

Settings content
SettingWhat is importedWhat is not imported
User templatesAdministrator templates with limits, permissions, and default valuesThe template technical domain if it does not exist on the receiving server. The template is imported without it
PolicyServer policies, including prefixes—
Access to functionsAccess groups and their permissions. If the Administrators or Resellers items are also selected — membership of administrators and resellers in the groupsGroups for the reseller role if the receiving server has no reseller module
Branding settingsBranding settings and logo files—
Menu configurationFavorite, pinned, and hidden menu sections of administrators—
AdministratorsAdministrator accounts: passwords, superuser rights, suspension, personal access permissionsThe root account. Administrators whose names are already used by a user or a reseller on the receiving server
ResellersReseller accounts: passwords, limits, personal access permissions. If the User templates, DNS settings, or Branding settings items are also selected — reseller templates, DNS settings, and brandsResellers whose names are already used by a user or an administrator on the receiving server
Anti-spam protection listsGreylists, whitelists, blacklists, and DNSBL lists—
Notification settingsPanel notification settingsThe Additional panel addresses, Default panel URL, Automatic panel URL detection fields
System settingsGeneral panel settingsThe Server name, Additional panel addresses, Allow access to ispmanager support, Social login fields
DNS settingsDomain creation settingsThe Name servers, IP addresses for name servers, Server name for SOA-records fields if the Migration with the same IP address box is unchecked at the Import parameters step
GDPR policyGDPR documents, user consents and refusals with the original date and IP addressDocuments linked to resellers that were not imported
Cron settingsAdministrator cron jobs and general cron settingsSystem panel jobs. Jobs whose command matches a job on the receiving server
IPmanager integration settingsIPmanager connection parameters—

Checking user permissions

When the user is imported from ispmanager over rsync, the panel automatically checks their individual and group permissions in the source panel. The check involves both functions and their subfunctions. The reseller's permissions are not checked.

You can disable this check if necessary. To do that, add the following parameter to the ispmanager main configuration file /usr/local/mgr5/etc/ispmgr.conf:

Option UsermoveDisableRightsCheck

Cancelling the import

A running import can be cancelled. In this case:

  • entities of the currently imported user will be imported
  • if files or databases are being imported, the import will be stopped immediately
  • files that have already been imported will not be deleted
  • if a package is being installed or the panel is being updated, the installation and update will not be interrupted to avoid package conflicts

Data import log

The import log contains the following fields:

  • Type — entity type

    Possible values
    • Domain
    • SSL certificate
    • CSR request
    • Website
    • Mail domain
    • Mailbox
    • FTP user
    • CRON job
    • Database
    • Database user
    • Files
    • Mailbox files
    • Website files
    • Administrator
    • Reseller
    • User template
    • Policy
    • Access group
    • Adding to an access group
    • Branding settings
    • Menu configuration
    • Greylisting
    • Whitelist
    • Blacklist
    • DNSBL list
    • Notification settings
    • System settings
    • DNS settings
    • GDPR document
    • Cron settings
    • IPmanager integration settings
  • Name — entity name
  • Status — entity import status

    Possible values
    • Successful — the entity was imported without errors
    • Pending — the entity is waiting to be imported
    • In progress — the entity is being imported
    • Skipped — the entity import was skipped if the entity exists
    • Warning — the entity was imported with changes, e.g. a handler, PHP version, or DBMS change
    • Error — the entity import failed
  • Details — description of the reasons why the entity was skipped, warnings and errors that occurred during the import

    Details for settings import
    • The password hash is unavailable; a new random password has been set—please change it manually — the administrator or reseller password was not imported. Set a new password on the receiving server.
    • Failed to transfer the permissions file — personal access permissions were not imported, for example, because there is no SSH access to the source server.
    • Administrator not migrated; adding to the group was skipped, Reseller not migrated; adding to group skipped — the account does not exist on the receiving server, so it was not added to the access group.
    • There are no resellers on the server; the group for the "Reseller" role has been skipped — the receiving server has no reseller module.
    • The template's technical domain is not present on the serve, the template has been migrated without the technical domain.
    • The brand domain is occupied by another reseller on the server, it has not been migrated., The reseller has no domains, so there is nothing to link the brand to; it has been skipped — the reseller brand was not imported.
    • Failed to migrate some of the logos, The brand was not saved on the server; the logos were not migrated — check the branding settings on the receiving server.
    • The resellers to which the document is linked have not been migrated, the document has been skipped — the GDPR document was not imported.

The log supports data search and filtering.

Change of entity directories after import to ispmanager

 cPanelPleskispmanager
User home directory/home/USERNAME/var/www/vhosts/DOMAIN//var/www/USERNAME/data
Mailbox directory/home/USERNAME/mail/MAIL_DOMAIN/MAILBOX/var/qmail/mailnames/DOMAIN/MAILBOX/Maildir/var/www/USERNAME/data/email/MAIL_DOMAIN/MAILBOX/.maildir
Main site directory​/home/USERNAME/public_html/var/www/vhosts/DOMAIN/httpdocs//var/www/USERNAME/data/www/DOMAIN
Additional sites directory
  • /home/USERNAME/public_html/SUBDOMAIN
  • /home/USERNAME/SUBDOMAIN
/var/www/vhosts/DOMAIN/SUBDOMAIN.DOMAIN/httpdocs/
  • /var/www/USERNAME/data/www/DOMAIN/SUBDOMAIN
  • /var/www/USERNAME/data/www/SUBDOMAIN.DOMAIN
Path to SSL certificates/home/USERNAME/ssl/certs/usr/local/psa/var/certificates//var/www/httpd-cert/USERNAME
Path to mail clienthttps://DOMAIN_OR_IP:2096/webmailhttps://webmail.DOMAINhttps://DOMAIN_OR_IP:1501/roundcube

Data import technical details

Calculating required disk space

The UsermoveDiskSizeDelta parameter value is added to the amount of disk space required for import. The parameter is stored in the main configuration file of the panel. The default value is 200 MB.

If the total size of the imported data slightly exceeds the amount of free disk space, this size can be reduced by decreasing the value of the UsermoveDiskSizeDelta parameter.

Example

The size of imported data is 550 MB. The required space is: 550 MB + 200 MB = 750 MB. There is 700 MB free disk space on the server.

To perform the import, set the UsermoveDiskSizeDelta parameter value to150 MB.

Loading an archive when importing from a backup copy

When loading a backup to the server (except for copies from a remote control panel), the selected archive will be uploaded to the storage (by default, /usr/local/mgr5/var/backup/) as a user archive. The existing user archive will be overwritten.

Selecting PHP mode and version for site

Selecting PHP mode

When importing a site, the panel searches for the PHP mode used by that site on the source server:

  • If the PHP mode is installed on the receiving server and allowed for the user, it remains unchanged for the imported site
  • If the PHP mode is not installed or is not allowed for the user, the first from the allowed PHP modes is selected
  • If no PHP modes are installed or allowed, the site is imported without a PHP handler
Selecting PHP version

When importing a site, the panel searches for the PHP version used by that site on the source server:

  • If the PHP version is found, it remains unchanged for the imported site.
  • If the specific PHP version for the selected PHP mode is not found, the panel will select the latest within the same major PHP version. For example, if the imported site used PHP 7.1 on the source server, and the receiving server has PHP 7.3 and 7.4 installed, then PHP 7.4 will be selected. If no suitable major version is found, the site will be imported with the default PHP version.
  • For a site using a native PHP version on the source server, a suitable alternative version with the same number is selected on the receiving server. For example, if the native PHP version on the source server is 7.2, the imported site will use the alternative PHP 7.2 on the receiving server, or if unavailable, a suitable major version. If no suitable alternative PHP version is found, the site is imported with the receiving server's native PHP version.

Service file

When configuring an import, its parameters are saved to an XML file with a name like usermove_params.3DzhkJ in the /usr/local/mgr5/tmp/usermove/ directory. When the import is launched, the file is passed to the usermovectl utility, which installs the software, updates the panel, increases user limits, and launches the import.

After the import is complete, the file is deleted. If the import was configured but not launched, the file will be deleted after 3 days.

Data import logging

  • /usr/local/mgr5/var/ispmgr.log — imported entities processing log
  • /usr/local/mgr5/var/usermovectl.log — usermovectl utility log, including the import of ispmanager settings
  • /usr/local/mgr5/var/usermove.log — main log of import via rsync
  • /usr/local/mgr5/var/backup2_import.log — main log of import from a backup (when loading an archive from a local computer/from a local directory/from URL)
  • /usr/local/mgr5/var/restore2.log — log of launches of data restoration from an imported backup (except ispmanager 4)
  • /usr/local/mgr5/var/backup2_cpanel_conv.log — log of user entity conversion when importing from cPanel
  • /usr/local/mgr5/var/backup2_plesk_conv.log — log of user entity conversion when importing from Plesk

Database

Import parameters are written to the tables of the internal ispmanager database:

  • usermove — imports table. Contains the following fields:
    • begin_time — date and time the import started
    • status — import status, possible values are:
      • 0 — completed
      • 1 — suspended
      • 2 — shutting down
      • 3 — in progress
    • users — a link to the users table containing the ID of the user that ran the import
  • usermove_journal — import log table. Contains the following fields:
    • import_id — a link to the usermove table containing the ID of the import
    • user_name — username of the user that owns the entity
    • type — entity type
    • object_name — entity name
    • status — entity import status, possible values are:
      • 0 — imported successfully
      • 1 — pending import
      • 2 — import in progress
      • 3 — skipped
      • 4 — imported with warnings
      • 5 — error, the entity is not imported
    • details — warnings and import errors