/go/cb ("copy backup") sends a backup made by backup to the /backup folder of another server. It can: Once the file is on the remote server, you can restore it there with restore. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Copy the newest backup of a domain to another server
/go/cb example.com 203.0.113.10 'RemoteRootPassword'
Options
| Value of the first argument | What it does |
|---|---|
A domain, such as example.com |
Copies the newest file in /backup whose name contains it. |
A file name, such as example.com.tar.gz |
Copies that backup file. Give the name only, with no path. |
all |
Copies every .tar.gz file in /backup, one after another. |
Rules
| Item | Rule |
|---|---|
| File or domain | Must contain a dot, and must not contain /. |
| Remote server | Must contain a dot. |
| File type | The file must end in .tar.gz. |
| Remote folder | Always /backup, as root, on SSH port 22. |
Examples
# Newest backup of a domain
/go/cb example.com 203.0.113.10 'RemoteRootPassword'
# One backup file (use the real file name from /backup)
/go/cb example.com.tar.gz backup.example.net 'RemoteRootPassword'
# Every backup in /backup
/go/cb all 203.0.113.10 'RemoteRootPassword'
# Ask for everything
/go/cb
# Check that the file arrived
ssh root@203.0.113.10 'ls -lh /backup'
Output
On success the command prints one line, and nothing else:
Copying /backup/<file>.tar.gz To 203.0.113.10:/backup
| Message | Meaning |
|---|---|
Invalid file name or domain name |
The first argument has no dot. |
Do not enter file path <file>, Just file name or domain name. |
The first argument contains /. |
Invalid Remote Server <server>. |
The server name has no dot. |
File <file> not exists. |
No matching .tar.gz file was found. |
The copy runs in quiet mode, so errors from the copy itself are not shown, and the command ends without a success or failure message. See Checking the result.
Each run adds a line to /var/log/go/cb.log, with the password replaced by ********.
See the full reference at /go/cb 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.
