cyrnel Posted September 6, 2011 Share Posted September 6, 2011 It's standard chmod "funky mode" syntax (as opposed to the more obvious numeric mode). Basically: D for directory, F for file ugoa for user, group, other, all + or - for set or clear rwx for read, write, execute Try googling chmod man. Quote Link to comment
wsume99 Posted September 6, 2011 Author Share Posted September 6, 2011 Thanks again for all your help cyrnel. I think I finally have it working the way I want it. I've done some more experimenting and what I've come to understand is that you cannot have a space in the path when defining a module. For example I tried this module and rysnc command combination just for kicks: [test1] path = /cygdrive/c/Users/John/"Saved Games" read only = true transfer logging = yes rsync -avP --delete --chmod=Fo-X 192.168.1.152::test1 /mnt/user/photobackups/"Saved Games"/ This did not work. I got the same "chdir failed" error I had gotten previously and if you look back at the dir listing for c:/Users/John/ you'll see that a Saved Games directory does exist. However if I use this module and rsync command combination it works (just simply taking cyrnel's advice and driving up the tree so that I do not have any spaces in the module path). [test1] path = /cygdrive/c/Users/John read only = true transfer logging = yes rsync -avP --delete --chmod=Fo-X 192.168.1.152::test1/"Saved Games" /mnt/user/photobackups/ That code works. It created a Saved Games directory in /mnt/user/photobackups/ and copied all the flies from c:/Users/John/Saved Games/ and places it in /mnt/user/photobackups/Saved Games/. I think I may finally understand this. Quote Link to comment
cyrnel Posted September 6, 2011 Share Posted September 6, 2011 Good deal! If I recall, the code that reads rsyncd.conf and builds modules essentially treats those lines as #defines; it isn't like shell. You could hard-code your module in a recompiled rsync but that's getting desperate. Better to do as you are. Quote Link to comment
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.
Note: Your post will require moderator approval before it will be visible.