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@procuri.com <mailto:rgambotz@procuri.com> Procuri Inc. www.procuri.com
On 9/24/07, Richard Riley <rriley@procuri.com> wrote:> 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.> Is there rsync source code somewhere, compatible with my OS, I > could compile that would fix my problem?Yes. The latest stable release of rsync is 2.6.9, and it comes with a patch that adds support for -X ( patches/xattrs.diff ). The source package is at: http://rsync.samba.org/ftp/rsync/rsync-2.6.9.tar.gz Or you might like Fedora 7's RPM of an rsync 2.6.9 binary patched with ACL and extended attribute support: http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/rsync-2.6.9-2.fc7.i386.rpm Note that -X works only if the rsyncs on both ends of the copy support it. Matt
On 9/26/07, Richard Riley <rriley@procuri.com> wrote:> I downloaded the source from the samba.org site. My current > question/problem is that after I compiled and installed, it did not > provide/create an rsyncd.conf file. Do I have to create one from > scratch?No, you can keep the one you were previously using with the other version of rsync. Matt