LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chmod - need help with options capital D and capital F.. (https://www.linuxquestions.org/questions/linux-newbie-8/chmod-need-help-with-options-capital-d-and-capital-f-872965/)

cookiedough 04-04-2011 05:07 PM

chmod - need help with options capital D and capital F..
 
I am trying out Rsync and saw an example of a Rsync command that contains the following:

--chmod=g+w,Da+rX,Fa+r


I researched online but didn't have any luck finding out what "D" and "F" are..

Any help will be much appreciated! Thanks in advance!

vtel57 04-04-2011 05:33 PM

Sorry, no such options/arguments in chmod as cap D and cap F...

man chmod(1)

man chmod(2)

cookiedough 04-04-2011 06:05 PM

Quote:

Originally Posted by vtel57 (Post 4313957)
Sorry, no such options/arguments in chmod as cap D and cap F...

man chmod(1)

man chmod(2)

Thanks vtel57! That's what I thought too...I am not sure if "D" and "F" are Rsync related only then..

If you look at this post: http://www.lightcubesolutions.com/blog/?p=104. In the first code block (which I pasted below) in the arg line, it uses "D" and "F" in the chmod command..

<target name="rsync_remotehost" >
<exec executable="rsync" dir="${cfg.someDir}">
<arg line="-aOvz --chmod=g+w,Da+rX,Fa+r,F-X --exclude .svn . \
${rsync.user}@${rsync.server}:${rsync.dir}" />
</exec>
</target>

vtel57 04-04-2011 06:19 PM

The author is modifying his build.xml file in that snippet. What you see there is XML coding, not proper chmod (Linux command) syntax, I think.

cookiedough 04-04-2011 08:07 PM

Quote:

Originally Posted by vtel57 (Post 4313984)
The author is modifying his build.xml file in that snippet. What you see there is XML coding, not proper chmod (Linux command) syntax, I think.

I found it! :) Here: http://linux.die.net/man/1/rsync

"D" - directory
"F" - file

Thanks a lot for the help! :)


All times are GMT -5. The time now is 11:57 AM.