LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-03-2007, 01:08 AM   #1
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
Mirroring two remote server against each other


Good Day

I have two servers, one is in the UK and the other one is in SA.
They are both FTP servers whcih are accessed by Consultants around the world.

Now the situation I find my self in is when a Architect uploads a drawing on the UK server it must be "immediatly" mirrored to the SA server so that the consultants in SA can get it, and when a Drawing is uploaded to the server in SA it must be mirrored to the Server in the UK.

I have had a look at rsync and Unison to mirror the servers but can t seem to come up with a reliable, simple solution.

Does any body have a simple solution, or have the same sort of setup. I think rsync is the best way to go, but how would I setup the script etc..

Cheers
 
Old 10-03-2007, 02:28 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
Perhaps you can mount a remote share in each ftp root. So if the file is uploaded in either location it is visible to both servers immediately.

But users will then access the remote share which is slow depending on your connection.

Mirroring with rsync will always have time difference.
 
Old 10-03-2007, 03:11 AM   #3
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Original Poster
Rep: Reputation: 30
Thanks I am aware that rsync will have a time difference, but i am looking for a script lets say that does the following


1. A file is uploaded to the FTP server
2. A script checks if there is any change to the file structure,say every 10 minutes, run from cron
3. If no - nothing is done
4 . If Yes, another script is initiated that runs rsync so that the file that has been uploaded is syced across to the other server

the same must happen on the other server.

Is this possible, if so, where can i find such a script??

Cheers
 
  


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
Mirroring a LAMP server PB0711 Linux - Server 3 08-12-2006 06:05 AM
LXer: Setting up RAID-1 mirroring on a running remote Linux system over ssh session LXer Syndicated Linux News 0 06-20-2006 10:03 PM
Server mirroring ? rsync Bluesuperman Linux - Networking 3 04-25-2006 10:12 PM
Synchronizing/Mirroring a Server cereal83 Linux - General 9 01-11-2006 06:05 PM
mirroring a whole server ginger.fish0 Fedora 3 08-22-2005 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:44 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
Open Source Consulting | Domain Registration