How To Install backupninja on Kali Linux

In this tutorial we learn how to install backupninja on Kali Linux. backupninja is lightweight, extensible meta-backup system

Introduction

In this tutorial we learn how to install backupninja on Kali Linux.

What is backupninja

backupninja is:

Backupninja lets you drop simple config files in /etc/backup.d to coordinate system backups. Backupninja is a master of many arts, including incremental remote filesystem backup, and MySQL backup. By creating simple drop-in handler scripts, backupninja can learn new skills. Backupninja is a silent flower blossom death strike to lost data.

In addition to backing up regular files, Backupninja has handlers to ease backing up: Maildir, MySQL, PostgreSQL, SVN, Trac, hardware and system information, as well as the output from custom shell scripts.

Backupninja currently supports common backup utilities, easing their configuration, currently supported are: rdiff-backup, duplicity, rsync, borgbackup, restic and CD/DVD.

Most handlers have their own dependencies/recommendations, shown in brackets below:

  • dup [duplicity, trickle]
  • rdiff [rdiff-backup]
  • sys [debconf-utils, hwinfo, mdadm]
  • makecd [genisoimage, wodim]
  • rsync [rsync]
  • svn [subversion]
  • tar [bzip2]
  • borg [borgbackup]
  • restic [restic]

There are three methods to install backupninja on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install backupninja Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install backupninja using apt-get by running the following command:

sudo apt-get -y install backupninja

Install backupninja Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install backupninja using apt by running the following command:

sudo apt -y install backupninja

Install backupninja Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install backupninja using aptitude by running the following command:

sudo aptitude -y install backupninja

How To Uninstall backupninja on Kali Linux

To uninstall only the backupninja package we can use the following command:

sudo apt-get remove backupninja

Uninstall backupninja And Its Dependencies

To uninstall backupninja and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove backupninja

Remove backupninja Configurations and Data

To remove backupninja configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge backupninja

Remove backupninja configuration, data, and all of its dependencies

We can use the following command to remove backupninja configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge backupninja

Dependencies

backupninja have the following dependencies:

References

Summary

In this tutorial we learn how to install backupninja package on Kali Linux using different package management tools: apt, apt-get and aptitude.