How To Install rsnapshot on Rocky Linux 8

In this tutorial we learn how to install rsnapshot on Rocky Linux 8. rsnapshot is Local and remote filesystem snapshot utility

Introduction

In this tutorial we learn how to install rsnapshot on Rocky Linux 8.

What is rsnapshot

This is a remote backup program that uses rsync to take backup snapshots of filesystems. It uses hard links to save space on disk.

We can use yum or dnf to install rsnapshot on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rsnapshot.

Install rsnapshot 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 rsnapshot using dnf by running the following command:

sudo dnf -y install rsnapshot

Install rsnapshot 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 rsnapshot using yum by running the following command:

sudo yum -y install rsnapshot

How To Uninstall rsnapshot on Rocky Linux 8

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

sudo dnf remove rsnapshot

rsnapshot Package Contents on Rocky Linux 8

/etc/rsnapshot.conf
/usr/bin/rsnapshot
/usr/bin/rsnapshot-diff
/usr/share/doc/rsnapshot
/usr/share/doc/rsnapshot/AUTHORS
/usr/share/doc/rsnapshot/ChangeLog
/usr/share/doc/rsnapshot/README.md
/usr/share/doc/rsnapshot/rsnapshot.conf.default
/usr/share/doc/rsnapshot/utils
/usr/share/doc/rsnapshot/utils/README
/usr/share/doc/rsnapshot/utils/backup_dpkg.sh
/usr/share/doc/rsnapshot/utils/backup_mysql.sh
/usr/share/doc/rsnapshot/utils/backup_pgsql.sh
/usr/share/doc/rsnapshot/utils/backup_rsnapshot_cvsroot.sh
/usr/share/doc/rsnapshot/utils/backup_smb_share.sh
/usr/share/doc/rsnapshot/utils/debug_moving_files.sh
/usr/share/doc/rsnapshot/utils/make_cvs_snapshot.sh
/usr/share/doc/rsnapshot/utils/mkmakefile.sh
/usr/share/doc/rsnapshot/utils/mysqlbackup.pl
/usr/share/doc/rsnapshot/utils/random_file_verify.sh
/usr/share/doc/rsnapshot/utils/rsnapreport.pl
/usr/share/doc/rsnapshot/utils/rsnapshot-copy
/usr/share/doc/rsnapshot/utils/rsnapshot_if_mounted.sh
/usr/share/doc/rsnapshot/utils/rsnapshot_invert.sh
/usr/share/doc/rsnapshot/utils/rsnapshotdb
/usr/share/doc/rsnapshot/utils/rsnapshotdb/CHANGES.txt
/usr/share/doc/rsnapshot/utils/rsnapshotdb/INSTALL.txt
/usr/share/doc/rsnapshot/utils/rsnapshotdb/LICENSE.txt
/usr/share/doc/rsnapshot/utils/rsnapshotdb/README.txt
/usr/share/doc/rsnapshot/utils/rsnapshotdb/TODO.txt
/usr/share/doc/rsnapshot/utils/rsnapshotdb/rsnapshotDB.conf.sample
/usr/share/doc/rsnapshot/utils/rsnapshotdb/rsnapshotDB.pl
/usr/share/doc/rsnapshot/utils/rsnapshotdb/rsnapshotDB.xsd
/usr/share/doc/rsnapshot/utils/rsnaptar
/usr/share/doc/rsnapshot/utils/sign_packages.sh
/usr/share/licenses/rsnapshot
/usr/share/licenses/rsnapshot/COPYING
/usr/share/man/man1/rsnapshot-diff.1.gz
/usr/share/man/man1/rsnapshot.1.gz

References

Summary

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