From owner-freebsd-questions@FreeBSD.ORG Tue Mar 17 15:14:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 526811065670 for ; Tue, 17 Mar 2009 15:14:18 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 2C0A08FC22 for ; Tue, 17 Mar 2009 15:14:17 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from [69.69.69.183] ([69.70.93.206]) by VL-MO-MR001.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0KGN00LD7OZTXM90@VL-MO-MR001.ip.videotron.ca> for freebsd-questions@freebsd.org; Tue, 17 Mar 2009 11:14:17 -0400 (EDT) Message-id: <49BFBE20.5030206@optiksecurite.com> Date: Tue, 17 Mar 2009 11:13:36 -0400 From: FreeBSD User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) To: "freebsd-questions@freebsd.org" Subject: Rsync always preserve owner/group X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2009 15:14:18 -0000 Hi list! I'm in the process of creating an automated update system based on SVN and rsync. I 'svn update' every night and then rsync the updated files from the working copy of SVN to the right folders. The problem I have is that when I rsync the files, the destination owner/group is set with the owner/group from the source file (the file from the SVN with a wrong owner/group). I don't want to modify the destination file owner/group but only update it's content. I'm not using any option with the rsync command. I also observed that the permissions are not changed in the transfer, which is a normal behaviour and perfect in my situation. Example: ll /usr/local/etc/scripts/ -rwxrwxrwx 1 psm psm 2754 Mar 17 10:51 wakeup.sh And the details of the source file: ll /root/update/scripts/ -rwxr-xr-x 1 root wheel 2754 Mar 13 11:37 wakeup.sh Execution of the rsync command: rsync /root/update/scripts/wakeup.sh /usr/local/etc/scripts/ ll /usr/local/etc/scripts/ -rwxrwxrwx 1 root wheel 2754 Mar 17 10:59 wakeup.sh I also tried to explicitly disable preserve group with --no-g but got the same result. What am I doing wrong? Thanks a lot for your help! Martin