using rsync on selinux

Richard Riley rriley at procuri.com
Mon Sep 24 19:50:03 GMT 2007


I'm trying to use rsync to synchronize customer application files across
multiple WEB servers.  The actual copying of the files works fine.  The
problem is that it changes the selinux security context of some of the
files.  Since there are over 2000 files for each customer, it becomes a
major issue to correct the security context after the fact as not all
have the same context.  Searching the WEB, I have found references to a
"-X" option to rsync, but this option does not exist in the RHEL4
version of rsync.  I have an open ticket with RedHat, but no resolution
yet.  Is there rsync source code somewhere, compatible with my OS, I
could compile that would fix my problem?

My OS is RHEL4 2.6.9-55.0.2.ELsmp

The rsync command I am using is as follows:

"cd /local/base/directory"
"rsync -avz  localdirectory rsync://remotehost/modulename"


Richard Riley
System Administrator
Email: rriley at procuri.com <mailto:rgambotz at procuri.com> 

Procuri Inc.
www.procuri.com




More information about the rsync mailing list