Plan DirectAdmin imports against the panel database

This commit is contained in:
parkel committed 2026-11-20 23:28:34 +01:00
1 parent 6ff77f3aed
commit 0468db1cd8
6 files changed
+340

No files matched your search

+22
View File
@@ -361,6 +361,28 @@ have an 8 MiB limit per file. Mail and website counts refer to regular
files at recognized paths. The report contains names and counts rather
than passwords, hashes or file contents.
### Plan a DirectAdmin import
On the panel host, use the panel's database settings to preview which
account, mailbox requests and database requests can be created.
```sh
python manage.py plan_directadmin_import user.admin.customer.tar.zst
```
The plan uses the source username as the account name and picks the backup's
primary domain, or its only discovered domain when there is no default.
Use `--primary-domain` to select a different domain from the backup. For
a domainless archive, use it to assign the new account a domain.
The command reads the panel database and reports `blocked` when the chosen
domain is already assigned to a hosting account, DNS zone or mail domain,
or when a domain still needs to be selected. The report lists database
requests using the suffix after the source username and mailbox requests
for the selected domain. The `manual_review` list identifies other domains,
database names that need a mapping, and data that needs a separate migration,
including website files, DNS zones, mail files and SQL dumps.
## Request an Apache configuration preview
Start RabbitMQ and set `COULOBRE_BROKER_URL` to its AMQP URL. The development