rsync under Windows, permission problem

When calling rsync from Windows (e.g. with Cygwin) to sync to Unix, I had the bad surprise that all directories created on the Linux side had the permission 000 (that’s it, no permission at all). After rsync created the top level directory, it would pitifully fail to create any element underneath it (mkdir: permission denied).

The solution is to call it with the chmod option :

$ rsync -rtxv --chmod=ugo=rwX -e ssh localdir/ user@host:/remotedir
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s