/go/restore is the counterpart of backup. It can: Account restores recreate the account with create, then put back files, subdomains, mail, the Linux password, and databases. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Restore the newest archive for a domain from /backup
/go/restore example.com
# Restore every archive in /backup
/go/restore all
# Download and restore every account from a dated remote backup
/go/restore all 2026-11-19
Options
| Option | Default | Notes |
|---|---|---|
--storage secondary |
Primary | Reads /var/go/etc/secondary.conf instead of the primary destination file. |
--storage tertiary |
Primary | Reads /var/go/etc/tertiary.conf. |
--skip mysql |
— | Creates the databases and users but does not import the MariaDB dumps. Used internally after a MariaDB hot-backup restore. |
Everything else is positional. A <hostname> argument only matters for remote restores; it names the folder <remotedir>/<hostname>/<date> that the backup was written to.
Archive names follow <type>-backup-<date>-<domain>.tar.gz (see backup).
Examples
# Newest archive for a domain in /backup
/go/restore example.com
# A specific archive (fetched from the remote destination if it isn't local)
/go/restore full-backup-2026-11-19-example.com.tar.gz
# Restore files, settings, and mail but not the MariaDB dumps
/go/restore full-backup-2026-11-19-example.com.tar.gz --skip mysql
# Restore every account from the primary remote backup of 19 November
/go/restore all 2026-11-19
# Restore everything from another server's backup folder
/go/restore all 2026-11-19 old-server.example.com
# Same, from the secondary destination
/go/restore all 2026-11-19 --storage secondary
# Restore GoAdmio's own databases
/go/restore database 2026-11-19
# Restore saved Let's Encrypt certificates
/go/restore ssl
Output
The command prints plain-text progress, one block per account:
[3/42] Restoring example.com...
Restoring example.com Files...
Restoring example.com Email Accounts...
Restoring MySQL/MariaDB Database example_db...
Remote restores (all <date> and <archive> <date>) also send an email and a WhatsApp message when they start, for each account, and when they finish. The final message always reads Restoring All Sites (<date> | <hostname>), even for a single account.
The create step prints its own JSON with the new account’s login details.
Security
[!WARNING]
A restore changes the system in ways that are hard to undo. Read What it overwrites first.
- The saved Linux password line for the account is printed to the terminal when it is written back to
/etc/shadow. - The MariaDB hot-backup restore reads the root password in plain text from
mysql/mariadb.pwdand sets the server’s root password to it. - Every call is appended to
/var/log/go/restore.log.
See the full reference at /go/restore and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
