Add operator DirectAdmin import preflight and reviewed restores
This commit is contained in:
1 parent
a7f71ae218
commit
f9244e3244
23 files changed
+2031
-24
No files matched your search
+63
-1
@@ -721,13 +721,75 @@ the source backup. The server-wide System Backup and CustomBuild database
|
||||
backup are separate formats.
|
||||
[DirectAdmin backup guide](https://docs.directadmin.com/directadmin/backup-restore-migration/)
|
||||
|
||||
### Import from the panel
|
||||
|
||||
Sign in as a server administrator with a verified second factor. Under
|
||||
**Admin Tools → Import**, upload the archive and run the read-only preflight.
|
||||
It inventories website files, supported SQL dumps, mailbox messages and
|
||||
nonempty folders, and DNS records. The review also identifies unsupported
|
||||
entries. The upload is stored privately on the panel host and the preview
|
||||
expires after 24 hours.
|
||||
|
||||
Select a primary source domain, any additional source domains, a preferred
|
||||
public or private web root, and the components to restore. If a selected
|
||||
domain has only one web root, Coulobre uses it. You can restore all supported
|
||||
components or only what you need. Select a package with enough website
|
||||
slots when restoring more than one site.
|
||||
The destination can be a new hosting account or an existing empty account
|
||||
whose primary domain exactly matches. Remove any existing starter page
|
||||
before restoring website files. Existing DNS can be left in place if you
|
||||
do not select DNS import. New accounts do not include a new customer login.
|
||||
Open the destination account after import to attach a customer or manager.
|
||||
|
||||
The selected component types apply to supported content across the selected
|
||||
domains. Additional websites become independent sites on the same hosting
|
||||
account. Database dumps are restored once per import because the source
|
||||
account, not an individual domain, owns them. Nested home
|
||||
archives, source credentials, redirects, aliases, and scheduled tasks
|
||||
are not restored. Mailboxes and databases use Coulobre credentials.
|
||||
Set passwords and update applications that still use the old names or
|
||||
passwords. Mailboxes are activated on the mail node immediately. Imported
|
||||
DNS is saved without publishing. Review the IPs, nameservers, DNS
|
||||
records and mail routing before publishing it or changing the registrar.
|
||||
|
||||
Watch progress online or return through **Recent imports**. An import is
|
||||
not an atomic change across all services. If it stops, review component
|
||||
status and the destination before trying again. An import never changes the
|
||||
source server. A new copy cannot overwrite an existing website or database.
|
||||
|
||||
The compressed archive limit is 1 GiB and the expanded archive limit is
|
||||
8 GiB or 500,000 entries, whichever is reached first. Reverse proxies in
|
||||
front of Coulobre need to permit the upload size and time. For larger
|
||||
archives or custom component mappings, use the staged CLI workflow below.
|
||||
On slow connections, the panel's Gunicorn request timeout may also limit
|
||||
the size that can be uploaded. Use the CLI or adjust the web service
|
||||
timeout for the deployment. Wait for in-progress imports to finish before
|
||||
upgrading a panel or mail receiver.
|
||||
|
||||
The packaged installer and APT upgrade install the dedicated import worker
|
||||
and the local restore socket. A manually maintained panel needs the
|
||||
matching `coulobre-directadmin-*` units in `deploy/systemd/` and the
|
||||
`coulobre-mail-provisioning` system group. Run `systemctl daemon-reload`
|
||||
and enable/start `coulobre-directadmin-restore.socket` and
|
||||
`coulobre-directadmin-import-worker.service`. Fresh installations include
|
||||
the Apache upload limit for this page. On an existing Apache deployment,
|
||||
copy the updated `deploy/apache/panel-proxy.inc` to
|
||||
`/etc/coulobre/panel-proxy.inc` and check its configuration with
|
||||
`apache2ctl configtest` before reloading Apache. A linked Coulobre mail
|
||||
receiver must be on the matching release and use its scoped apply key.
|
||||
Apply the matching mail receiver installation or install the
|
||||
`coulobre-mail-apply@.service.d/zz-directadmin.conf` drop-in before
|
||||
restoring mailbox data.
|
||||
|
||||
### Inspect through the CLI
|
||||
|
||||
| Resource | Source in the account archive | Destination |
|
||||
| --- | --- | --- |
|
||||
| Account | `backup/user.conf` and the domain inventory | One new hosting account with the selected primary domain |
|
||||
| Website | `domains/DOMAIN/public_html` or `private_html` | Empty managed document root for the selected domain |
|
||||
| Database | `backup/USERNAME_SUFFIX.sql` | Empty managed MariaDB database named `coulobre_ACCOUNTID_suffix` |
|
||||
| Mailbox | `backup/DOMAIN/email/passwd` and a virtual mailbox Maildir | Fresh managed mailbox with the same address |
|
||||
| DNS | `backup/DOMAIN/DOMAIN.db` | Unpublished primary-domain zone with apex SOA and NS, A, AAAA, MX, and TXT |
|
||||
| DNS | `backup/DOMAIN/DOMAIN.db` | Unpublished primary-domain zone with apex SOA and NS, A, AAAA, MX, TXT, CNAME, SRV, and CAA |
|
||||
|
||||
```sh
|
||||
coulobre-directadmin inspect user.admin.customer.tar.zst
|
||||
|
||||
Reference in new issue
Block a user