Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-18-2007, 01:59 PM   #1
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 75
RSYNC Directory Structure?

Guys - I get a bit confused with the RSYNC command on keeping identical directories on two different servers mirrored / identical. Some times if my folder path is not correct, I end up something like:


So I am trying to copy everything from server1 /share/pub/ to match server2 /share/pub/

Would the following be correct to run from server2 assuming that server1 is the master?

rsync -avz --delete -e ssh root@ /share/
Old 09-18-2007, 02:48 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,701

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
I believe so
Old 09-18-2007, 02:58 PM   #3
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 75
LOL - OK. I am scared to try it on a prod server but I have no choice. I need to sync the data that has been changed since my last tar over ssh.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory Structure fedix Linux - Newbie 3 10-14-2005 03:48 PM
"WARNING: Circular directory structure" error when deleting directory pistonbrew Linux - Software 5 02-03-2005 07:05 AM
directory structure alaios Linux From Scratch 4 04-20-2004 07:16 PM
Linux Directory Structure cmfarley19 Linux - General 1 01-03-2003 09:20 AM
directory structure sluggo Linux - Newbie 1 01-20-2002 09:15 PM

All times are GMT -5. The time now is 06:40 AM.

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