Skip to main content

Salvo on DirectAdmin

Salvo does on DirectAdmin what it does on cPanel: backup of the accounts, databases, mail and server configuration, and restore part by part, with the same check at the end. What changes is the path inside: on DirectAdmin, Salvo uses the panel's own tools (the user backup and restore, the API, CustomBuild) where cPanel uses its own. This page puts together what is the same, what is different and what does not come back on DirectAdmin yet.

● DirectAdmin complete: released in 0.6.0  ● in testing: scheduled backups, until the first nights

Install and open​

The same command of Installation detects DirectAdmin and installs the admin plugin and a local service on 127.0.0.1. The screen is in Admin › Extra Features › Salvo Backup and only opens with a valid DirectAdmin session.

The installation also writes a hook of DirectAdmin's own (scripts/custom/sendSystemMessage_pre/salvo-silencio.sh) that cancels the panel's notices to the account while Salvo works on it: without it, every configuration backup and every restore would send the customer Your backups are now ready or Your User files have been restored. Only the account Salvo is working on at that moment stays silent, for 30 minutes at most; a backup the customer makes in DirectAdmin still notifies. Remove Salvo takes the hook out (0.6.0).

What works the same as on cPanel​

Backup: accounts, databases, folders, mail (every 30 minutes) and server configuration jobs (on DirectAdmin, each service's source files and the CustomBuild customizations).

Restore the whole account (Restore and download): new account, over the current one (with a safety copy first), deleted, with another account name, with another domain or the temporary salvo-<domain>; pick the parts (files, mail, databases, SSL, cron, FTP), skip a domain, choose the IP and check the site, mail and databases at the end; pause, resume and cancel halfway (cancelling a new account removes it); undo a replace.

Restore just a part:

  • a deleted mailbox comes back whole: messages, password, folders, the folder list and the filters;
  • the mailbox settings: forwarders, autoresponder, quota, password and filters;
  • a database the customer deleted in the panel comes back with the permissions of the site's user;
  • files of the home, keeping the mail group on the mail folders;
  • items of the account configuration: DNS zone, FTP accounts, forwarders, subdomains, cron, SSL certificate and database users.

Everything that comes back into the home is written as the account user, never as root; mail folders keep the mail server's group.

From a file and to a file:

  • Restore and download › Restore from a file (DirectAdmin backup or cPanel cpmove) restores a backup of DirectAdmin's own (user.<creator>.<account>.tar, .tar.gz or .tar.zst) or a cPanel package (cpmove-<account>.tar.gz), which first goes through DirectAdmin's official converter; on the command line, restore-package --file. In a lab, a 558 MB cPanel account came back as a DirectAdmin account in 4:28m, with 17 mailboxes, 26,721 messages and the database;
  • account-export downloads the account in DirectAdmin's format (user.admin.<account>.tar.zst), which the panel's own restore accepts. Downloading a whole account is command line only, on DirectAdmin and on cPanel.

What is different on DirectAdmin​

SubjectOn DirectAdmin
DNS zone in an account restorealways comes back: DirectAdmin requires a zone for each domain of the account, so "do not recreate the zone" is refused
Databases and database userscome together: choose both or neither
DNS zone, FTP, forwarders and subdomains (one configuration item)come back through DirectAdmin's own user restore, which only adds what is missing: the mode is always merge (a record created today stays)
Croncomes back through the system crontab, from the backup's crontab.conf
SSL certificatecomes back through the user API, with the key, the certificate and the chain
Mailboxeslive in imap/<domain>/<mailbox>/Maildir, with the mail group

What does not come back on DirectAdmin yet​

  • Webmail preferences: DirectAdmin's Roundcube keeps them in its own database, outside the account. The restore refuses with that sentence.
  • Contacts and calendar: on DirectAdmin they live in PowerCube's database, which is not in the account backup (being studied).
  • Mail node and remote MySQL servers: they are cPanel features; on DirectAdmin the Mail center and Database servers show only this server.
  • Old JetBackup backups: reading and restoring the backups JetBackup left does not work on DirectAdmin yet. Importing its configuration works; jb-import --paused brings the jobs with their schedule paused, for you to turn on when you want (0.6.0).

What DirectAdmin does not do is refused right at the choice, with is not available on DirectAdmin, never halfway through the restore.

On the command line​

root@server
# restore a DirectAdmin backup or a cPanel package (converted) as an account of this server
salvo restore-package --file /home/admin/user.admin.account01.tar.zst [--user NEWNAME] [--mode new|replace]
salvo restore-package --file /home/cpmove-account01.tar.gz
# download the account in DirectAdmin's format, from the latest good backup
salvo account-export --job ID --account account01 --to /root/exported
# account configuration items: dns, ftp, email_fwd and subdomain come back through DirectAdmin's restore (only what is
# missing); cron, ssl and dbuser through their own path
salvo restore-config --job ID --account account01 --item subdomain
salvo restore-config --job ID --account account01 --item cron

The other commands are the same as on cPanel: see Restore and download and the Reference.

Next: Get started.