Command mode

Command mode

Command mode is primarily intended for use in scripts, for example, for automated deployment of SqlBak agents.

To display the list of available commands, enter:

sqlbak --help

You can also view the list of parameters for each command by appending --help after the command name. For example:

sqlbak log-settings --help

After the command, you can list various parameters. Typically, there is one control flag (a parameter without a value) and one or more value parameters. For example:

sqlbak source --add --source-type=mysql --load-from-file=/path/to/mysql/connection.json

In this example:

  • --add is the control flag, indicating that a new source should be added.

  • --source-type and --load-from-file are parameters that provide values for the operation.

Available commands:

  • about – Displays information about the application

  • state – Manages the connection between the backup agent and SqlBak.com

  • source – Manages database connection settings

  • update – Updates server info known to SqlBak about the backup agent

  • security – Manages application security settings

  • log-settings – Manages additional application logging

  • web-proxy-settings – Manages web proxy settings