LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Mirroring two remote server against each other (https://www.linuxquestions.org/questions/linux-server-73/mirroring-two-remote-server-against-each-other-589041/)

shawnbishop 10-03-2007 01:08 AM

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

brianmcgee 10-03-2007 02:28 AM

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.

shawnbishop 10-03-2007 03:11 AM

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


All times are GMT -5. The time now is 06:07 PM.