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
- Open Accounts → Transfers → New transfer → From a cPanel, Plesk or DirectAdmin server and set Control panel to DirectAdmin.
- Enter the server, port 22 and the user
rootwith its password or a private key, then Check the server and confirm its host key. - 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
- On DirectAdmin, create a user backup of the account with Admin Backup/Transfer. Download the
user.RESELLER.USER.tar.gzor.tar.zstfile. - In the ScalPanel admin panel, open Accounts → Transfers and choose New transfer.
- Choose Upload an archive and set Made by to DirectAdmin.
- Choose the file and select Upload.
- Under Choose the accounts, pick the Owner (the provider's direct customers or a reseller) and a Package.
- Tick the account and choose Transfer.
- Follow the progress on the transfer page and read the report when it finishes.
What is converted
| DirectAdmin | On ScalPanel |
|---|---|
| User and main domain | The account, with the DirectAdmin user name when it is free |
| Each domain | Its own website, from domains/DOMAIN/public_html |
| Subdomains | Websites from their folder in the domain's public_html |
| Domain pointers | Extra 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 zones | Records added to ScalPanel's zones |
Cron jobs (crontab.conf) | Cron jobs of the matching website |
| Email accounts | Mailboxes with their quota, password and mail from imap/ |
domain.cert and domain.key | Installed 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.phpfiles 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 asprivate_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:
- Create the account in Accounts → Create account with the main domain, and add the other domains in the hosting panel.
- Copy the website files with SFTP (see SSH access in the hosting panel) or an FTP account, into each website's
publicfolder. - 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.
- Create the mailboxes in Email. Then use Import mail on each mailbox to copy its mail from the DirectAdmin server over IMAP.
- 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.