Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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..
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??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.