Import DirectAdmin account backups from the panel #311

Merged
parkel merged 2 commits from feature/directadmin-panel-import into main 2026-12-04 15:26:44 +01:00
Owner

New features

  • Run a read-only DirectAdmin archive preflight under Admin Tools → Import. Review available website files, SQL dumps, mailbox and folder counts, and DNS records before confirming.
  • Restore all supported components or a selection across one or more domains. Create a hosting account with an optional hosting package, or use a matching empty account without replacing its existing package.
  • Follow queued provisioning and per-component results from the panel. Local and linked Coulobre mail receivers are supported. Imported DNS is saved as a draft and is not published.

Security

  • Require an active operator with a verified second factor, keep uploads in private bounded storage, and verify archive integrity on the destination. Retain normal CSRF checks and reject unauthorized uploads before parsing the request body.
  • Recheck account emptiness and operator access before restoring. Do not copy source credentials. A linked mail receiver receives only the selected mailbox data through its existing scoped credentials.

Documentation and operation

  • Document the operator workflow, deployment prerequisites, proxy and upload limits, unsupported data, and recovery after partial completion. Larger or custom imports can continue to use CLI tooling.
  • APT includes Zstandard and the import worker and restore socket. A linked mail receiver needs the matching release and service drop-in. Wait for active imports before upgrading. No files or services on live hosts were changed.

Verification

  • Python 3.14: 811 Django tests, 1 skipped, and 37 installer tests. Ruff, migration drift and packaging checks passed.
  • Verified the source distribution and wheel against the reviewed commit, built the Debian package, and checked that it includes the new service units.
  • Test fixtures cover multi-domain restores, partial restores into an empty account, nonempty destination rejection, and linked mail transport. A customer archive has not been used for verification.

Closes #310.

## New features - Run a read-only DirectAdmin archive preflight under **Admin Tools → Import**. Review available website files, SQL dumps, mailbox and folder counts, and DNS records before confirming. - Restore all supported components or a selection across one or more domains. Create a hosting account with an optional hosting package, or use a matching empty account without replacing its existing package. - Follow queued provisioning and per-component results from the panel. Local and linked Coulobre mail receivers are supported. Imported DNS is saved as a draft and is not published. ## Security - Require an active operator with a verified second factor, keep uploads in private bounded storage, and verify archive integrity on the destination. Retain normal CSRF checks and reject unauthorized uploads before parsing the request body. - Recheck account emptiness and operator access before restoring. Do not copy source credentials. A linked mail receiver receives only the selected mailbox data through its existing scoped credentials. ## Documentation and operation - Document the operator workflow, deployment prerequisites, proxy and upload limits, unsupported data, and recovery after partial completion. Larger or custom imports can continue to use CLI tooling. - APT includes Zstandard and the import worker and restore socket. A linked mail receiver needs the matching release and service drop-in. Wait for active imports before upgrading. No files or services on live hosts were changed. ## Verification - Python 3.14: 811 Django tests, 1 skipped, and 37 installer tests. Ruff, migration drift and packaging checks passed. - Verified the source distribution and wheel against the reviewed commit, built the Debian package, and checked that it includes the new service units. - Test fixtures cover multi-domain restores, partial restores into an empty account, nonempty destination rejection, and linked mail transport. A customer archive has not been used for verification. Closes #310.
parkel added 2 commits 2026-12-04 15:25:04 +01:00
Add operator DirectAdmin import preflight and reviewed restores
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Successful in 2m29s
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Successful in 2m35s
f9244e3244
parkel merged commit 984c94421b into main 2026-12-04 15:26:44 +01:00
parkel deleted branch feature/directadmin-panel-import 2026-12-04 15:26:44 +01:00
Sign in to join this conversation.