Originally Posted by tate_harmann
I understand the -d options copies directories, but I do a:
rsync -va /directory server:/directory/
and that copies the directories as well. What is this option for? According the man page it is a little different that the --recursive option.
The -d option is a relatively new option added around March of 2005
. Neither LQ's man page
nor my man page
describe it. I've not used it, but it sounds like it causes directories, but not their contents (or the directories below them?) to be copied. If you want to copy a whole tree, you want the -r option. (-r is implied by -a)
For other's reference, here
is a man page
Also, I am using rsync to sync up a web root directory on a two machine cluster. Is there a way to fire up rsync whenever a file change is made, or do I just have to run a script every so often?
I'll let others more knowledgeable than I answer that one!