This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rsync and file ownership


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@gmail.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]