Table of Contents
Backup Ninja agent, a.k.a bartender is an application running as a service on the database host which acts as an agent for Backup Ninja to perform multiple tasks assigned from the Backup Ninja dashboard. It’s also a command-line client to Backup Ninja API endpoints, as shown under Command-Line.
Agent periodically pulls the latest configuration from the API endpoints and performs the necessary actions to attempt completing the assigned task. The agent will then push the job’s state back to Backup Ninja API endpoints, allowing users to track every single job and monitor the status directly from a single place.
Package Repository
Backup Ninja will install the following repository definition onto the supported OS distributions:
$ cat /etc/yum.repos.d/bar-repo.repo
[bar-repo]
name=Severalnines Repository
baseurl = http://repo.severalnines.com/backupninja/rpm/os/x86_64
enabled = 1
gpgkey = http://repo.severalnines.com/severalnines-repos.asc
gpgcheck = 1
$ cat /etc/apt/sources.list.d/bar-repo.list
deb [arch=amd64] http://repo.severalnines.com/backupninja/deb ubuntu main
Running the Process
Binary is located by default at /usr/sbin/bartender
. The only argument is -config
with the default value set to /etc/bartender.yaml
.
Service Management
Stop
To stop the Backup Ninja agent, run:
$ systemctl stop bartender
$ service bartender stop
Restart
To restart the Backup Ninja agent, run:
$ systemctl restart bartender
$ service bartender restart
Start
To restart the Backup Ninja agent, run:
$ systemctl start bartender
$ service bartender start
Status
To check the status of the Backup Ninja agent, run:
$ systemctl status bartender
$ service bartender status
Upgrade
To upgrade the Backup Ninja agent, run:
$ yum update bartender
$ apt-get update
$ apt-get upgrade bartender
Uninstall
To remove the Backup Ninja agent, run:
$ yum remove bartender
$ apt-get remove bartender
And then, remove the node from Servers → More Actions → Delete.
The uninstall process will not remove your created backups.
Reinstall
To reinstall the Backup Ninja agent, first, remove it from the database server, and follow the adding server steps again. See Adding a New Server.
Agent Management from UI
You can perform the Backup Ninja agent management tasks that we mentioned earlier from the Backup Ninja dashboard. See Server List.