How To Install obnam on Debian 9
Introduction
In this tutorial we learn how to install obnam on Debian 9.
What is obnam
obnam is:
Obnam makes backups. Backups can be stored on local hard disks, or online via the SSH SFTP protocol. The backup server, if used, does not require any special software, on top of SSH.
- Snapshot backups. Every generation looks like a complete snapshot, so you don’t need to care about full versus incremental backups, or rotate real or virtual tapes.
- Data de-duplication, across files, and backup generations. If the backup repository already contains a particular chunk of data, it will be re-used, even if it was in another file in an older backup generation. This way, you don’t need to worry about moving around large files, or modifying them.
- Encrypted backups, using GnuPG.
- Push or pull operation, depending on what you need. You can run Obnam on the client, and push backups to the server, or on the server, and pull from the client over SFTP.
There are three methods to install obnam on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install obnam Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install obnam using apt-get by running the following command:
sudo apt-get -y install obnam
Install obnam Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install obnam using apt by running the following command:
sudo apt -y install obnam
Install obnam 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 obnam using aptitude by running the following command:
sudo aptitude -y install obnam
How To Uninstall obnam on Debian 9
To uninstall only the obnam package we can use the following command:
sudo apt-get remove obnam
Uninstall obnam And Its Dependencies
To uninstall obnam and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove obnam
Remove obnam Configurations and Data
To remove obnam configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge obnam
Remove obnam configuration, data, and all of its dependencies
We can use the following command to remove obnam configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge obnam
Dependencies
obnam have the following dependencies:
References
Summary
In this tutorial we learn how to install obnam package on Debian 9 using different package management tools: apt, apt-get and aptitude.