rsync with --flags patch: unable to rsync hardlinks to files w/ schg
Raphael H. Becker
rabe at p-i-n.com
Fri Dec 8 04:24:24 PST 2006
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 at 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
More information about the freebsd-ports
mailing list