How To Install backupninja on Debian 10

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

Introduction

In this tutorial we learn how to install backupninja on Debian 10.

What is backupninja

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 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]

There are three ways to install backupninja on Debian 10. 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 first since aptitude is usually not installed by default on Debian. 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 Debian 10

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 Debian 10, we can use the command below:

sudo apt-get -y autoremove backupninja

Remove backupninja Configurations and Data

To remove backupninja configuration and data from Debian 10 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

References

Summary

In this tutorial we learn how to install backupninja on Debian 10 using different package management tools like apt, apt-get and aptitude.