Guides for operators

Migrate: moving customers from DirectAdmin

Move hosting customers from DirectAdmin with the velrix command: plan from backups, apply, cut over.

velrix import directadmin moves hosting customers from DirectAdmin to a Velrix realm: their organisations, domains, sites and files, databases, mailboxes and mail. It runs in the velrix command on your own computer. It reads only DirectAdmin’s backup files, never talks to DirectAdmin, and writes into the realm through its API as you, so the realm never holds a DirectAdmin password.

Nothing is written before you have read the plan.

Before you start

  • Backups. In DirectAdmin, make user backups of the customers to move (.tar.gz or .tar.zst) and download them, with reseller.conf and the package files beside them.
  • The reseller organisation on the realm, which the customers become part of, and an account that administers it.
  • Sign in as that account, with the scopes the import uses:
    velrix login https://cloud.example.se --scope "orgs:list orgs:create billing:customer.add \
      billing:quotas.set ingress:domain.add ingress:domain.verify sites databases email:list \
      email:domain.add email:mailbox.add email:alias.set email:domain.catchall \
      email:mailbox.vacation email:apppassword.add email:apppassword.remove act_in_scopes"
    

    cutover also needs sites:names.set sites:sftp.remove ingress:app.view email:view domains:list orgs:member.list orgs:invite.create billing:account.hold.

1. Plan

velrix import directadmin plan backups/user.admin.*.tar.zst reseller.conf --reseller org:<id> > plan.json

plan reads the backups as streams, without unpacking them, and writes the plan (JSON) and a dry-run report: what each DirectAdmin user becomes, what is not carried over and why, the totals against each customer’s allotments, and the mail volume. It marks what already exists on the realm. --offline reads nothing from the realm.

The plan is yours to edit: PHP versions, which server, allotments, where DNS goes, when invites go out. --rules overrides the shipped mapping rules.

2. Apply

velrix import directadmin apply plan.json backups/user.admin.*.tar.zst
velrix import directadmin status plan.json

apply carries the plan out with the same backups, each checked against the plan before anything of it is written: organisations, domains, sites and their files, databases, mail and its messages. It keeps a ledger beside the plan and says what it made, what waits (a domain’s TXT record, a restore still running) and what did not go through. Run it again to go on; nothing is made twice. --only <user> takes one customer, --step <name> one step.

Passwords come along: mailbox passwords keep working where their hash scheme allows it, so customers don’t have to choose new ones.

3. Catch up

Customers keep working on DirectAdmin until they move. With a newer set of backups of the same customers:

velrix import directadmin delta plan.json newer/user.admin.*.tar.zst

Changed and new files are sent and removed ones removed, a changed database is restored again, and new mail is added without duplicates.

4. Cut over

velrix import directadmin cutover plan.json --zone realm      # the realm's nameservers carry the zones
velrix import directadmin cutover plan.json --zone external   # you set the records where DNS is

cutover attaches the sites’ names, prints each domain’s records and checks them. Only when all of a customer’s records are in place does it mark the customer moved, remove the import’s temporary access, invite the owner by mail, and hold an account that was suspended on DirectAdmin. Run it again to check again.

Other platforms

Velrix has no VMware import tool in this release.

Next