How To Install rsnapshot on CentOS 8

rsnapshot is Local and remote filesystem snapshot utility

Introduction

In this tutorial we learn how to install rsnapshot on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install rsnapshot.

Install rsnapshot on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install rsnapshot

Install rsnapshot on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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

sudo dnf remove rsnapshot

rsnapshot Package Contents on CentOS 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 CentOS 8 using yum and dnf.