Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 2006 13:24:22 +0100
From:      "Raphael H. Becker" <rabe@p-i-n.com>
To:        freebsd-ports@freebsd.org
Subject:   rsync with --flags patch: unable to rsync hardlinks to files w/ schg
Message-ID:  <20061208122421.GA73042@p-i-n.com>

next in thread | raw e-mail | index | archive | help

Hi *,

we're running two jail-hosts with some jails in it. The two hosts (will)
replicate the active jails to each other to have a fallback.

On the backup-host I run the following command:

rsync -avHWx -e ssh --flags --delete root@jailhost1.dmz:/data/jails/ /data/jails

Doing so brings me the following errors for each jail:

rsync: link "/data/jails/jail4711/usr/bin/chfn" => jail4711/usr/bin/ypchsh failed: Operation not permitted (1)
rsync: link "/data/jails/jail4711/usr/bin/chpass" => jail4711/usr/bin/ypchsh failed: Operation not permitted (1)
rsync: link "/data/jails/jail4711/usr/bin/chsh" => jail4711/usr/bin/ypchsh failed: Operation not permitted (1)
rsync: link "/data/jails/jail4711/usr/bin/ypchfn" => jail4711/usr/bin/ypchsh failed: Operation not permitted (1)
rsync: link "/data/jails/jail4711/usr/bin/ypchpass" => jail4711/usr/bin/ypchsh failed: Operation not permitted (1)
rsync: link "/data/jails/jail4711/usr/bin/passwd" => jail4711/usr/bin/yppasswd failed: Operation not permitted (1)

These files have the "schg" flag on jailhost1, which get rsynced to
jailhost2. Theese files are not present on jailhost2 after this:

ls: /data/jails/jail4711/usr/bin/passwd: No such file or directory

Any idea how to get rid of this?  

Regards
Raphael Becker 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061208122421.GA73042>