How To Install rdiff-backup on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install rdiff-backup on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rdiff-backup.

Install rdiff-backup on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install rdiff-backup

Install rdiff-backup on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install rdiff-backup

How To Uninstall rdiff-backup on Rocky Linux 8

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

sudo dnf remove rdiff-backup

rdiff-backup Package Contents on Rocky Linux 8

/usr/bin/rdiff-backup
/usr/bin/rdiff-backup-delete
/usr/bin/rdiff-backup-statistics
/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/b1cbbc007c4de81d066dc73d7181d8ee6f77fa
/usr/lib/.build-id/91
/usr/lib/.build-id/91/93abfe6d0e0531dac3d72df0be10d431aa502c
/usr/lib64/python3.6/site-packages/rdiff_backup
/usr/lib64/python3.6/site-packages/rdiff_backup-2.0.5-py3.6.egg-info
/usr/lib64/python3.6/site-packages/rdiff_backup-2.0.5-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/rdiff_backup-2.0.5-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/rdiff_backup-2.0.5-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/rdiff_backup-2.0.5-py3.6.egg-info/requires.txt
/usr/lib64/python3.6/site-packages/rdiff_backup-2.0.5-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/rdiff_backup/C.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/rdiff_backup/FilenameMapping.py
/usr/lib64/python3.6/site-packages/rdiff_backup/Globals.py
/usr/lib64/python3.6/site-packages/rdiff_backup/Hardlink.py
/usr/lib64/python3.6/site-packages/rdiff_backup/Main.py
/usr/lib64/python3.6/site-packages/rdiff_backup/Rdiff.py
/usr/lib64/python3.6/site-packages/rdiff_backup/Security.py
/usr/lib64/python3.6/site-packages/rdiff_backup/SetConnections.py
/usr/lib64/python3.6/site-packages/rdiff_backup/TempFile.py
/usr/lib64/python3.6/site-packages/rdiff_backup/Time.py
/usr/lib64/python3.6/site-packages/rdiff_backup/__init__.py
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/FilenameMapping.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/FilenameMapping.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Globals.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Globals.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Hardlink.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Hardlink.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Main.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Main.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Rdiff.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Rdiff.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Security.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Security.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/SetConnections.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/SetConnections.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/TempFile.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/TempFile.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Time.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/Time.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/backup.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/backup.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/compare.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/compare.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/connection.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/connection.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/eas_acls.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/eas_acls.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/fs_abilities.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/fs_abilities.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/hash.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/hash.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/increment.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/increment.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/iterfile.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/iterfile.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/librsync.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/librsync.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/log.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/log.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/longname.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/longname.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/manage.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/manage.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/metadata.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/metadata.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/regress.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/regress.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/restore.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/restore.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/robust.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/robust.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/rorpiter.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/rorpiter.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/rpath.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/rpath.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/selection.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/selection.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/statistics.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/statistics.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/user_group.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/user_group.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/win_acls.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/__pycache__/win_acls.cpython-36.pyc
/usr/lib64/python3.6/site-packages/rdiff_backup/_librsync.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/rdiff_backup/backup.py
/usr/lib64/python3.6/site-packages/rdiff_backup/compare.py
/usr/lib64/python3.6/site-packages/rdiff_backup/connection.py
/usr/lib64/python3.6/site-packages/rdiff_backup/eas_acls.py
/usr/lib64/python3.6/site-packages/rdiff_backup/fs_abilities.py
/usr/lib64/python3.6/site-packages/rdiff_backup/hash.py
/usr/lib64/python3.6/site-packages/rdiff_backup/increment.py
/usr/lib64/python3.6/site-packages/rdiff_backup/iterfile.py
/usr/lib64/python3.6/site-packages/rdiff_backup/librsync.py
/usr/lib64/python3.6/site-packages/rdiff_backup/log.py
/usr/lib64/python3.6/site-packages/rdiff_backup/longname.py
/usr/lib64/python3.6/site-packages/rdiff_backup/manage.py
/usr/lib64/python3.6/site-packages/rdiff_backup/metadata.py
/usr/lib64/python3.6/site-packages/rdiff_backup/regress.py
/usr/lib64/python3.6/site-packages/rdiff_backup/restore.py
/usr/lib64/python3.6/site-packages/rdiff_backup/robust.py
/usr/lib64/python3.6/site-packages/rdiff_backup/rorpiter.py
/usr/lib64/python3.6/site-packages/rdiff_backup/rpath.py
/usr/lib64/python3.6/site-packages/rdiff_backup/selection.py
/usr/lib64/python3.6/site-packages/rdiff_backup/statistics.py
/usr/lib64/python3.6/site-packages/rdiff_backup/user_group.py
/usr/lib64/python3.6/site-packages/rdiff_backup/win_acls.py
/usr/share/bash-completion/completions/rdiff-backup
/usr/share/doc/rdiff-backup
/usr/share/doc/rdiff-backup/CHANGELOG.md
/usr/share/doc/rdiff-backup/COPYING
/usr/share/doc/rdiff-backup/DEVELOP.md
/usr/share/doc/rdiff-backup/FAQ.md
/usr/share/doc/rdiff-backup/README.md
/usr/share/doc/rdiff-backup/Windows-DEVELOP.md
/usr/share/doc/rdiff-backup/Windows-README.md
/usr/share/doc/rdiff-backup/examples.md
/usr/share/licenses/rdiff-backup
/usr/share/licenses/rdiff-backup/COPYING
/usr/share/man/man1/rdiff-backup-statistics.1.gz
/usr/share/man/man1/rdiff-backup.1.gz

References

Summary

In this tutorial we learn how to install rdiff-backup on Rocky Linux 8 using yum and dnf.