From owner-freebsd-ports@FreeBSD.ORG Fri Dec 8 12:24:24 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BD54116A403 for ; Fri, 8 Dec 2006 12:24:24 +0000 (UTC) (envelope-from rabe@p-i-n.com) Received: from dns.p-i-n.com (dns.p-i-n.com [145.253.185.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3432F43CA7 for ; Fri, 8 Dec 2006 12:23:25 +0000 (GMT) (envelope-from rabe@p-i-n.com) Received: from p-i-n.com (pinserv2.p-i-n.com [10.101.240.52]) by dns.p-i-n.com (8.12.9p2/8.12.9) with ESMTP id kB8COLUf073094 for ; Fri, 8 Dec 2006 13:24:21 +0100 (CET) (envelope-from rabe@p-i-n.com) Received: from pinserv2.p-i-n.com (localhost.p-i-n.com [127.0.0.1]) by p-i-n.com (8.13.6/8.13.6) with ESMTP id kB8COMqn099143 for ; Fri, 8 Dec 2006 13:24:22 +0100 (CET) (envelope-from rabe@pinserv2.p-i-n.com) Received: (from rabe@localhost) by pinserv2.p-i-n.com (8.13.6/8.13.6/Submit) id kB8COMGI099142 for freebsd-ports@freebsd.org; Fri, 8 Dec 2006 13:24:22 +0100 (CET) (envelope-from rabe) Date: Fri, 8 Dec 2006 13:24:22 +0100 From: "Raphael H. Becker" To: freebsd-ports@freebsd.org Message-ID: <20061208122421.GA73042@p-i-n.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Organization: PHOENIX Pharmahandel AG & Co KG, Mannheim, Deutschland Subject: rsync with --flags patch: unable to rsync hardlinks to files w/ schg X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 12:24:24 -0000 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