From DirectAdmin

Import DirectAdmin accounts into ScalPanel from DirectAdmin user backups.

ScalPanel imports DirectAdmin accounts from DirectAdmin's user backups (user.RESELLER.USER.tar.gz or .tar.zst). It can connect to the DirectAdmin server over SSH, list its users and have DirectAdmin make the backups itself, or you can upload backups you made, one account at a time.

Over SSH

  1. Open Accounts → Transfers → New transfer → From a cPanel, Plesk or DirectAdmin server and set Control panel to DirectAdmin.
  2. Enter the server, port 22 and the user root with its password or a private key, then Check the server and confirm its host key.
  3. Choose the users, the owner and the package, optionally Check compatibility, and start.

For each user, ScalPanel runs directadmin admin-backup --destination=<folder> --user=<user> into a private folder under /root (on older DirectAdmin versions, a backup task through DirectAdmin's task queue), copies the archive and removes the folder. It runs nothing else on the server.

Before you start

  • You are a provider administrator on ScalPanel. Resellers cannot run transfers.
  • Create the reseller and the package the account will go to, unless it goes straight under the provider.
  • Make sure no account on this ScalPanel already uses the account's main domain.
  • Lower the DNS TTL on the DirectAdmin server a day or two ahead. See Migration.

Note: An uploaded archive may be up to 50 GiB, and the upload may take up to 72 minutes (about 100 Mbit/s for the largest). ScalPanel 0.1.34 and older accepted only 10 MB through the browser.

Step by step

  1. On DirectAdmin, create a user backup of the account with Admin Backup/Transfer. Download the user.RESELLER.USER.tar.gz or .tar.zst file.
  2. In the ScalPanel admin panel, open Accounts → Transfers and choose New transfer.
  3. Choose Upload an archive and set Made by to DirectAdmin.
  4. Choose the file and select Upload.
  5. Under Choose the accounts, pick the Owner (the provider's direct customers or a reseller) and a Package.
  6. Tick the account and choose Transfer.
  7. Follow the progress on the transfer page and read the report when it finishes.

What is converted

DirectAdminOn ScalPanel
User and main domainThe account, with the DirectAdmin user name when it is free
Each domainIts own website, from domains/DOMAIN/public_html
SubdomainsWebsites from their folder in the domain's public_html
Domain pointersExtra domains on that domain's website
Databases (backup/*.sql)MariaDB databases named <prefix>_<name>, with their data
Database users (backup/*.conf)Users with full or read-only grants and new passwords
DNS zonesRecords added to ScalPanel's zones
Cron jobs (crontab.conf)Cron jobs of the matching website
Email accountsMailboxes with their quota, password and mail from imap/
domain.cert and domain.keyInstalled when valid and matching their key

Some details:

  • Grants: a database user with insert or update rights gets full access. A user with only select rights gets read-only access.
  • Cron: /home/USER/... paths are rewritten to the website's path. MAILTO= and other variable lines are left out.
  • Mail passwords: SHA-512, SHA-256 and bcrypt hashes are kept. Other hashes get a new password, shown in the report.
  • WordPress: wp-config.php files are rewritten to the new database name, user and password.
  • Account sign-in: the account owner gets a new password, shown in the report.

Known limits

  • Forwarders, autoresponders and the catch-all address are not transferred.
  • PostgreSQL databases are not transferred, and the report does not mention them. Check the source for PostgreSQL databases yourself.
  • PHP version and PHP settings are not carried over. Websites start on this server's default PHP version.
  • FTP accounts and mail filters are not transferred.
  • **Files outside public_html**, such as private_html, are not copied. Single files over 200 MiB are left out.
  • SPF, DKIM, DMARC and MX records are replaced by ScalPanel's own.
  • Resellers are not transferred. Create the reseller here first and choose it as the owner.
  • Uploads: one backup per upload. Over SSH, the server's users are listed and chosen together.

Manual path for large accounts

If the backup is too large to upload, build the account by hand:

  1. Create the account in Accounts → Create account with the main domain, and add the other domains in the hosting panel.
  2. Copy the website files with SFTP (see SSH access in the hosting panel) or an FTP account, into each website's public folder.
  3. Create the databases and users in Databases. Import each dump with the Database manager, or with the command line shown under the database's connection details.
  4. Create the mailboxes in Email. Then use Import mail on each mailbox to copy its mail from the DirectAdmin server over IMAP.
  5. Re-create the DNS records, cron jobs and forwarders.

After the transfer

Pass on the new credentials, update applications other than WordPress with their new database details, fix the items under Check these, and then switch DNS. See what to check afterwards.