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:


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


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

rsync guide:

No comments:

Post a Comment