1. Home
  2. Docs
  3. Backup Ninja
  4. User Guide
  5. Servers
  6. Detecting Previous Installation

Detecting Previous Installation

For any previous installation, the installation agent is able to detect the existing configuration and its data library. In this case, you just have to move the existing configuration and data library, or you can remove it if you no longer need it. Below shows an example detection:

[root@mariadb-server2 ~]# wget -q -O - https://agents-api.s9s.io/static/install/linux.sh | bash -s -- install xxxxxxx-bbbbb-4617-bbbb-ssssssss mysql://s9s:[email protected]:3306 agent-auth-api.s9s.io:443
=> Pre-installation check has failed (token found in configuration).

An existing or previous installation has been detected,
Please make sure you backup and remove the following
 files and directories first:
- /etc/bartender.yaml
- /var/lib/backup-agent/

Aborting installation.
[root@mariadb-server2 ~]# rm -rf /etc/bartender.yaml /var/lib/backup-agent/
[root@mariadb-server2 ~]# wget -q -O - https://agents-api.s9s.io/static/install/linux.sh | bash -s -- install xxxxxxx-bbbbb-4617-bbbb-ssssssss mysql://s9s:[email protected]:3306 agent-auth-api.s9s.io:443
=> Using "yum" package manager
=> Repo file "/etc/yum.repos.d/bar-repo.repo" already exists
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror-hk.koddos.net
 * epel: mirror.poliwangi.ac.id
 * extras: mirror-hk.koddos.net
 * updates: mirror-hk.koddos.net
Resolving Dependencies
--> Running transaction check
---> Package bartender.x86_64 0:1.0.0-282 will be updated
---> Package bartender.x86_64 0:1.1.0-331 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================
 Package                Arch                Version                 Repository             Size
================================================================================================
Updating:
 bartender              x86_64              1.1.0-331               bar-repo              7.5 M

Transaction Summary
================================================================================================
Upgrade  1 Package

Total download size: 7.5 M
Downloading packages:
No Presto metadata available for bar-repo
bartender-1.1.0-331-x86_64.rpm                                                                                                                                            | 7.5 MB  00:00:07
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : bartender-1.1.0-331.x86_64                                                                                                                                                    1/2
  Cleanup    : bartender-1.0.0-282.x86_64                                                                                                                                                    2/2
  Verifying  : bartender-1.1.0-331.x86_64                                                                                                                                                    1/2
  Verifying  : bartender-1.0.0-282.x86_64                                                                                                                                                    2/2

Updated:
  bartender.x86_64 0:1.1.0-331

Complete!
=> The agent is installed
=> Initializing the agent
=> Starting the agent

The agent installation of Backup Ninja has been successfully completed.
Please go back to your browser and check the Server Discovery step to
 verify that this host has appeared which might take a few seconds.

If you have any issues getting the agent to install and be discovered then
 please contact support at https://support.severalnines.com for assistance.
Was this article helpful to you? Yes No