rsync from Windows to Linux

Matt McCutchen matt at mattmccutchen.net
Tue Jun 3 20:56:04 GMT 2008


On Tue, 2008-06-03 at 07:31 -0700, becca23 wrote: 
> I am having a problem rsyncing from windows to linux, or rather, keeping the
> file permissions the way I want them. My project is basically to keep two
> identical directories, one in Windows and one in Linux, mirrored, but they
> must retain their user and group permissions. what rsync commands can I use
> to ensure that the windows permissions do not get copied over to linux?

> BTW i am using deltacopy on the windows side and rsync 3.0 on
> the linux side.

To leave the destination permissions and ownership alone and let newly
copied files adopt the defaults, simply omit the options -pog (or if
you're using -a, replace it with -rlt) and pass --chmod=ugo=rwX, as
mentioned under --perms in the current man page.

It looks like DeltaCopy contains rsync 2.6.6, which is too old to
recognize the --chmod option, so if you're pushing from the Windows
machine, you'll need to stuff that option in an --rsync-path:

rsync --rsync-path='rsync --chmod=ugo=rwX' ARGS...

> I have tried using the rsync command without archive mode, but no files get
> transferred.

This is probably separate from the permission issue.  Please pass -vvii
and post your rsync command line and the resulting output, and I'll see
what is going on.

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/rsync/attachments/20080603/c96fd9ce/attachment.bin


More information about the rsync mailing list