delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/21/09:27:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <fdb072ec040721062756b22c6f@mail.gmail.com>
Date: Wed, 21 Jul 2004 09:27:05 -0400
From: Robert Pendell <shinji257 AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: rsync and file ownership
In-Reply-To: <cdktdd$707$1@sea.gmane.org>
Mime-Version: 1.0
References: <cdktdd$707$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes

Don't use the -a option if you don't want to preserve the permissions.

From the man page:

-a, --archive               archive mode, equivalent to -rlptgoD

And now a breakdown of each option from the man page (you can use what
you need then)

-r, --recursive             recurse into directories
-l, --links                 copy symlinks as symlinks
-p, --perms                 preserve permissions
-t, --times                 preserve times
-g, --group                 preserve group
-o, --owner                 preserve owner (root only)
-D, --devices               preserve devices (root only)

HTH.

On Wed, 21 Jul 2004 17:02:35 +1200, Matthew Dwyer wrote:
> I've been struggling with rsync over ssh for a month.  I'm syncing files
> between windows boxes and I have rsync working except that its setting
> read only to the groups Administrators and Everyone.
> 
> Is there any way I can stop rsync or ssh setting permissions/ownership
> that wasn't already present in the originating files?  I've tried rsync
> -a... but thats not achieving what I want.
> 
> Matt.
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 


-- 
Robert Pendell
shinji257 AT gmail DOT com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019