The customer deleted the finance mailbox, the store’s database or the whole account. On DirectAdmin, the panel’s backup gives back everything or nothing. We deleted each part of a DirectAdmin account, one at a time, and restored it with Salvo. Does only what is gone come back, in the right place and with the right owner? And does it come back the same?
Why it matters to whoever runs the server
- Only what is gone. The panel’s backup gives back everything or nothing; here each part came back on its own, in seconds: a file in 0.8 s, a table in 0.6 s, the deleted mailbox in 1.2 s with its old password.See:Lab 20Lab 22
- It came back, and the customer can see it. This lab found a real case: 2,368 messages back on disk and webmail showing 1. Salvo now checks through the mail server itself and reindexes when something is missing; now all 2,439 show up.See:Lab 19
- The same tool on both panels. What this lab fixed also applies to cPanel and was tested on an account on a cPanel server. And a backup made on cPanel comes back on DirectAdmin.See:Lab 29Lab 21
| What happened | What Salvo did | Time | Check |
|---|---|---|---|
| A file, a whole site folder and a configuration file deleted (204 files, permissions 600 and 750, a link, a name with accents) | only what was missing came back | 0.8 s | the same: content, owner, group and permission |
| A table with 5,000 rows deleted (DROP TABLE) | only the table came back | 0.6 s | the same (the table’s checksum) |
| The whole database deleted in the panel | the database and its user’s permission | 0.7 s | the same; the site reaches the database again |
| 2,368 messages bulk-deleted from the Inbox | all 2,368 | 4.9 s | 2,439 of 2,439 messages visible in webmail |
| The whole mailbox deleted in the panel | the mailbox, its old password, the folders, the folder list and the filters | 1.2 s | 57 of 57 messages; the same password |
| A subdomain deleted in the panel | the subdomain and its DNS zone record | 17 s | the same; the subdomain answers |
| The whole account deleted in the panel | the account as it was: 15 mailboxes, 25,442 messages, 26,436 files, 2 databases | 45 s | the same (DirectAdmin recreates the spam folder and the system user number) |
| Account deleted, but only the email matters right now | a new account with email only: 15 mailboxes and 25,436 messages, no site or database | 47 s | the mail server accepts messages for the mailboxes |
| Account with a domain that now lives in another account | the account back without that domain (its site, mailboxes and zone left out) | 50 s | the account has only the main domain |
| Yesterday’s account needed beside today’s | a copy with another name and a temporary domain; the databases with the new prefix | 50 s | the 5,000 rows and the checksum match the original |
| A backup file from DirectAdmin itself (510 MB) | restored by Salvo over the account, with a safety copy first | 43 s | 15 mailboxes, 25,436 messages, 2 databases |
| Download the account to keep or move | the file in DirectAdmin’s own format (523 MB) | — | DirectAdmin restores that file in 25 s, the same |
| The customer changed the password and quota and created a forwarder by mistake | the mailbox settings back: forwarders, autoresponder, quota, password and filters | 1.2 s | the password is the same as before |
| Cron, SSL certificate or database user deleted | each one back, on its own | 0.6 to 1.3 s | the same certificate (same fingerprint); the user with the same password and its 3 permissions |
| A large restore at peak time | pause and resume midway (the pause holds between folders and before each database) | 25 s pause | finished the same |
| Started restoring the wrong account | cancel midway: the account created by the restore is removed entirely | — | nothing is left on the server |
Method
A test account on a DirectAdmin server in production (DirectAdmin 1.701, AlmaLinux 8, LiteSpeed, Dovecot 2.4, MariaDB 10.6), with 15 mailboxes and 25 thousand messages, 2 databases, a subdomain and a site with 400 test files. Names replaced with fictional ones.
Before each test, a fingerprint of the account: every file with owner, group, permission and content (md5); the rows and checksum of each table; the messages of each mailbox, by each message’s identifier; the subdomains, the DNS zone and the site’s response.
Each part was deleted the way it really happens: in the home folder, in MySQL or in the DirectAdmin panel itself. Then restored with Salvo.
After the restore, the same fingerprint again. “The same” means both match.
What Salvo does differently
Nothing is written as root in the customer’s home folder: files come back owned by the account and mail folders with the mail server’s group, as DirectAdmin leaves them. Messages back on disk are not enough: Salvo checks through the mail server that the customer can see them and, if not, reindexes again. The customer gets no panel notice for every restore: DirectAdmin sends the account a message for each of its backups and restores, and Salvo cancels only those, only for the account it is working on; a backup the customer makes in the panel still notifies. On DirectAdmin the DNS zone always comes back with the account, because the panel requires a zone for every domain.