/go/backup is GoAdmio's backup tool. It can: A full account backup contains the site files, mail, database dumps, and the account settings needed to recreate the account. Restore it with restore. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Back up one account into /backup
/go/backup example.com
# Back up every account into /backup
/go/backup all
# Run the scheduled backup now (uses the saved primary destination)
/go/backup
Options
A "—" in the Default column means the option is empty or unset unless you pass it. Passing --domain without --setup 1 runs a backup; passing --setup 1 saves a destination instead.
Main options
| Group | Option | Default | Notes |
|---|---|---|---|
| Selection | --domain |
— | An account domain, or all. |
| Selection | --type |
full |
See Backup types. |
| Selection | --date |
Today (YYYY-MM-DD) |
Used in archive and folder names. |
| Selection | --storage |
backup |
Destination slot: backup (primary), secondary, or tertiary. |
| Destination | --destination |
— | See Destinations. |
| Destination | --remotedir |
/ |
Target folder. For rclone remotes, leading slashes are removed (use bucket/path for S3). |
| Destination | --remoteserver |
— | Host for ftp and sftp. |
| Destination | --remoteuser |
root |
User for ftp and sftp. |
| Destination | --remotepass |
— | Password for ftp, sftp, internxt, and linkbox. |
| Destination | --port |
— | Port for ftp and sftp. |
| Schedule | --setup |
— | 1 saves the destination and installs the cron job instead of backing up. |
| Schedule | --cron |
— | Stored in the destination file and read by cron. |
| Schedule | --retention |
— | Number of dated backup folders to keep on the remote. |
| Schedule | --sync |
— | 1 also takes a MariaDB hot backup (mariadb-backup) and uploads it. |
| Schedule | --quiet |
— | 1 hides the setup messages and the SFTP connection test. |
Provider options
These are used with --setup 1 to create the rclone remote for the chosen destination.
| Destination | Options |
|---|---|
ftp, sftp |
--remoteserver, --remoteuser, --remotepass, --port |
s3 |
--accesskeyid, --secretaccesskey, --endpoint, --provider, --region |
azureblob |
--account, --key |
azurefiles |
--account, --sharename, --key |
webdav |
--url, --vendor, --webdavuser, --webdavpass |
mega |
--megauser, --megapass |
protondrive |
--protondriveuser, --protondrivepass |
pikpak |
--pikpakuser, --pikpakpass |
opendrive |
--opendriveuser, --opendrivepass |
mailru |
--mailruuser, --mailrupass |
ulozto |
--apptoken, --uloztouser, --uloztopass |
internxt |
--email, --remotepass |
linkbox |
--token, --email, --remotepass |
fichier |
--apikey |
drime, gofile |
--accesstoken |
idrive |
None. Configure the IDrive client by hand (see Details). |
--idriveuser and --idrivepass are accepted and stored but not used by this command.
Backup types
| Type | Archive contains |
|---|---|
full |
www, mail, etc, log, sqlite |
www |
www, etc, log |
mail |
mail, etc, log |
database |
etc, log, sqlite |
wwwmail |
www, mail, etc, log |
wwwdatabase |
www, etc, log, sqlite |
maildatabase |
mail, etc, log, sqlite |
Database dumps are written into log/mysql and log/postgre before archiving, so any type that includes database (and full) contains them. An empty --type means full; any other value stops with Invalid backup type: <type>.
Destinations
| Destination | Where each account archive goes |
|---|---|
homedir |
Stays in /home/<domain>/. |
url |
Moved to /usr/local/goadmio/backup/ with a random 16-character suffix in the file name. |
backup |
Moved to /backup/. |
local |
Moved to --remotedir. |
sftp |
Uploaded with rsync over SSH (sshpass) to --remoteuser@--remoteserver:--remotedir. |
idrive |
Moved to /backup/idrive/<date>/, then uploaded by the IDrive client. |
| Any other value | Copied with rclone copy to the rclone remote named by --storage. Use rclone for a remote you created yourself. |
The archive is named <type>-backup-<date>-<domain>.tar.gz, with a top-level folder of the same name inside.
Examples
# Full backup of one account into /backup
/go/backup example.com
# Files and databases only, leave the archive in the account's home folder
/go/backup --domain example.com --type wwwdatabase --destination homedir
# Save an SFTP destination as primary: full backups, keep 8, include MariaDB hot backup
/go/backup --setup 1 --cron "" --type full --destination sftp \
--remoteserver 203.0.113.10 --remoteuser root --remotepass 'S3cureP@ss' --port 22 \
--remotedir /backup --retention 8 --sync 1
# Save an S3 destination as secondary: database only, keep 8, no hot backup
/go/backup --setup 1 --cron "" --storage secondary --type database --destination s3 \
--accesskeyid <key-id> --secretaccesskey <secret> --endpoint s3.example.com \
--provider Other --region us-east-1 \
--remotedir my-bucket/backups --retention 8 --sync 0
# Run the scheduled backups now
/go/backup
/go/backup secondary
# Copy a folder to the primary remote
/go/backup /root/home /backup/home
Output
The command prints plain-text progress, one block per account:
[3/42] Transferring example.com full Backup to backup:backup/web1/2026-11-19 | Compressing...
Scheduled runs also send an email and a WhatsApp message at these points:
| Event | Message |
|---|---|
| Run starts | Backup Configuration Running Now |
| Run finishes | Backup Configuration Finished (Copied: <n> Sites) |
| Remote unreachable | Backup Configuration Failed with Connection Failed (<server>) |
| Local destination, root disk 90% full or more | Your disk space is running low (the run stops) |
<n> counts every account the run looked at, including accounts with backups disabled.
Security
[!WARNING]
Backup files and settings contain credentials. Treat them as sensitive.
- Each archive holds the account’s Linux password hash, database users and their password hashes, mail, and site configuration.
- With
--sync 1, the MariaDB root password is written in plain text to/mysql/mariadb.pwdand uploaded with the hot backup. --setup 1saves all credentials in plain text to/var/go/etc/<storage>.conf. The primary run also uploads/var/go, so they travel to the remote.- Every call, including any password passed as an argument, is appended to
/var/log/go/backup.logand is visible in the process list while running. - SFTP transfers do not verify the remote host key (
StrictHostKeyChecking=no).
See the full reference at /go/backup 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.
