How To Install rdiff-backup on CentOS 7

In this tutorial we learn how to install rdiff-backup on CentOS 7. rdiff-backup is Convenient and transparent local/remote incremental mirror/backup

Introduction

In this tutorial we learn how to install rdiff-backup on CentOS 7.

What is rdiff-backup

rdiff-backup is a script, written in Python, that backs up one directory to another and is intended to be run periodically (nightly from cron for instance). The target directory ends up a copy of the source directory, but extra reverse diffs are stored in the target directory, so you can still recover files lost some time ago. The idea is to combine the best features of a mirror and an incremental backup. rdiff-backup can also operate in a bandwidth efficient manner over a pipe, like rsync. Thus you can use rdiff-backup and ssh to securely back a hard drive up to a remote location, and only the differences from the previous backup will be transmitted.

We can use yum or dnf to install rdiff-backup on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install rdiff-backup.

Install rdiff-backup on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install rdiff-backup using yum by running the following command:

sudo yum -y install rdiff-backup

Install rdiff-backup on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install rdiff-backup using dnf by running the following command:

sudo dnf -y install rdiff-backup

How To Uninstall rdiff-backup on CentOS 7

To uninstall only the rdiff-backup package we can use the following command:

sudo dnf remove rdiff-backup

References

Summary

In this tutorial we learn how to install rdiff-backup on CentOS 7 using yum and dnf.