/go/save: save from the Command Line

/go/save keeps a copy of the server's configuration outside the server. If the server is rebuilt or replaced, the settings can be brought back with load instead of being typed in again. The command reads the settings from GoAdmio's database and a few configuration files, and sends each item to https://go.blackhost.com/file.php. Every item is sent with: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Save the settings under this server's hostname, protected by a password
/go/save 'my-passphrase'

Options

Argument Required Default Notes
<password> Yes, unless /etc/config exists The contents of /etc/config Hashed with MD5 as [<password>] before it is sent. A value read from /etc/config is sent as it is.
<hostname> No The contents of /etc/hostname The name the settings are saved under. It needs at least two dots.

Examples

# Save under the server's own hostname
/go/save 'my-passphrase'

# Save under a different hostname
/go/save 'my-passphrase' server1.example.com

# Use the password stored in /etc/config
/go/save

# Afterwards, remove the passphrase from your own shell's history
history -c
history -w

Output

Outcome What you get
No password and no /etc/config Please enter password. and exit status 1.
Hostname has fewer than two dots Nothing at all, and nothing is saved.
Settings sent Nothing for most items. For the crontab and the configuration files, the remote server’s reply is printed as it arrives.

Notes on the output:

  • There is no success message and no error message. Failed or timed-out requests are not reported.
  • The exit status is 0 in nearly every case, so it doesn’t show whether anything was saved.
  • Every run is logged to /var/log/go/save.log with a timestamp and all its arguments, including your password in plain text.

See the full reference at /go/save 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.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *