« Return to Thread: rsync from Windows to Linux

Re: rsync from Windows to Linux

by Matt McCutchen-7 :: Rate this Message:

Reply to Author | View in Thread

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


--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

signature.asc (204 bytes) Download Attachment

 « Return to Thread: rsync from Windows to Linux