Binlogic CloudBackup Cli
CloudBackup is a tool to orchestrate MySQL, MariaDB, MongoDB and PostgreSQL Backups in the Cloud.
cloudbackup-cli is a command line tool to manage and automate Binlogic CloudBackup API.
- If you already have go installed
go get github.com/binlogicinc/cloudbackup-cli
- Another alternative is to download the binary from the Release Section .
First and foremost, you need to go to your panel URL, click your username, go to Settings and finally to API Settings. Here you'll be able to generate the API keys needed to interact with the control panel progragmatically.
Then you need to define three mandatory parameters for all your API calls:
host (this is the
same host you use to interact with our panel, like https://YOUR-COMPANY.binlogic.io).
You can pass all these as command line parameters (
--host=), as environment variables
BL_host) or in a configuration file, by default in $HOME/.cloudbackup-cli.toml, like:
access-key = "PUT_YOUR_ACCESS_KEY_HERE" secret-key = "PUT_YOUR_ACCESS_SECRET_HERE" host = "https://YOUR_COMPANY.binlogic.IO"
After that, you can use the built in command help to explore it's capabilities