bcoffin Posted October 9, 2007 Share Posted October 9, 2007 I have a couple of installations of a small app (that has a lot of pages, unfortunately) and am looking into rsync to auto-sync all changed files to these boxes. It's working great, using the following: rsync -rptgovz --timeout=300 -e ssh /cygdrive/path/to/local/files/ rsyncuser@111.222.333.444:/home/path/to/one/installation And it's checking the differences, uploading newer files, and everything it's supposed to be doing on that front. However, it's changing all my perms to 0755. And changing all of my user:groups to 401:402 for some reason. Has anybody experienced this? The g and o flags are supposed to retain group and owner attributes. The p flag is supposed to retain the perms. I'm using v2.6.3 and setting (SET CYGWIN=nontsec). Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/72406-rsync-illin/ Share on other sites More sharing options...
trq Posted October 9, 2007 Share Posted October 9, 2007 Do the same users / groups exist on the remote machine? Quote Link to comment https://forums.phpfreaks.com/topic/72406-rsync-illin/#findComment-365401 Share on other sites More sharing options...
bcoffin Posted October 9, 2007 Author Share Posted October 9, 2007 Well the group is :nobody, which is what rhel4 uses for web users/php. I know I shouldn't be, but I'm connecting with rsync as root. I've changed this to rsyncuser (a member of nobody) with the same results. Quote Link to comment https://forums.phpfreaks.com/topic/72406-rsync-illin/#findComment-365413 Share on other sites More sharing options...
bcoffin Posted October 18, 2007 Author Share Posted October 18, 2007 And since rsync *is* changing the ownership on the files, I know that it has permissions to do so. It's just not changing them to the correct user/group. Quote Link to comment https://forums.phpfreaks.com/topic/72406-rsync-illin/#findComment-372529 Share on other sites More sharing options...
derwert Posted October 21, 2007 Share Posted October 21, 2007 It goes by the uid and gid not by the username and groupname. Make sure your uid and gid match up on both boxes. You mention CYGWIN; what are you using it for in this scenario? Quote Link to comment https://forums.phpfreaks.com/topic/72406-rsync-illin/#findComment-374611 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.