Sunday, 4 September 2011

File permissions and rsync.

A little problem I came across when trying to set up rsync to sync my music between Windows and OS X. The following is needed to do this in order to make rsync work in Windows with Cygwin, as Windows can mess up file permissions, which causes rsync to fail, resulting in a 'permission denied' error on the client. Here is how to recursively change file permissions using cygwin:

Directories:

find /path/to/base/dir -type d -exec chmod 755 {} \;

Files:

find /path/to/base/dir -type f -exec chmod 755 {} \;

Source: superuser.com
rsync guide: lifehacker.com

No comments:

Post a Comment