LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-19-2006, 10:56 AM   #1
tate_harmann
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Rep: Reputation: 15
rsync with -d option


Hi,
I have some questions about rsync. 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.
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?

thanks!
 
Old 09-20-2006, 06:39 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
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 that does describe it.

Quote:
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!

Last edited by blackhole54; 09-20-2006 at 06:41 AM.
 
Old 09-20-2006, 02:58 PM   #3
tate_harmann
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks friend!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm have --nodeps option with dpkg is such an option available deepclutch Debian 2 03-26-2006 10:49 PM
rsync help dc6463 Linux - Software 0 10-14-2004 11:08 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 03:49 PM
Using the exclude option absolutely with rsync karlovac Programming 0 03-01-2004 01:39 PM
rsync DropHit Linux - Software 2 02-18-2004 09:54 PM


All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration