Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

Chapter 22. rsync

The rsync utility performs fast file transfer and it is used for synchronizing data between systems. [20]
When using Red Hat Enterprise Linux, the rsync package provides rsync. Enter the following command to see if the rsync package is installed:
~]$ rpm -q rsync
package rsync is not installed
If it is not installed, use the yum utility as root to install it:
~]# yum install rsync

22.1. rsync and SELinux

SELinux requires files to have an extended attribute to define the file type. Policy governs the access daemons have to these files. If you want to share files using the rsync daemon, you must label the files and directories with the public_content_t type. Like most services, correct labeling is required for SELinux to perform its protection mechanisms over rsync.[21]


[20] See the Rsync project page for more information.
[21] See the rsync_selinux(8) manual page for more information about rsync and SELinux.