Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7728629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:45:59+00:00 2026-06-01T05:45:59+00:00

I have two load balanced servers each running exactly the same copy of various

  • 0

I have two load balanced servers each running exactly the same copy of various PHP based websites.

An admin user (or multiple admin users) hitting their site might therefore hit one or other of the servers when wanting to change content e.g. upload an image, delete a file from a media library, etc.

These operations mean one or other or both the servers go out of sync with each other and need to be brought back into line.

Currently I’m looking at rsync for this with the –delete option but am unsure how it reacts to files being deleted vs. new files being created between servers.

i.e. if I delete a file on server Server A and rsync with Server B the file should also be deleted from Server B (as it no longer exists on A) BUT If I separately upload a file to Server B as well as deleting a file from Server A before running the sync, will the file that got uploaded to Server B also get removed as it doesn’t exist on Server A?

A number of tutorials on the web deal with a Master-Slave type scenario where Server B is a Mirror of Server A and this process just works, but in my situation both servers are effectively Masters mirroring each other.

I think rsync keeps a local history of files it’s dealing with and as such may be able to deal with this problem gracefully but am not sure if this is really the case, or if it’s dangerous to rely on this alone?

Is there a better way of dealing with this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:46:00+00:00Added an answer on June 1, 2026 at 5:46 am

    I wasn’t happy with my previous answer. Sounds too much like somebody must have invented a way to do this already.

    It seems that there is! Check out Unison. There’s a GUI for it and everything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET application that is running on two load balanced servers. Everything
We have two apache/php web servers load balanced with squid page caching proxy. The
I have two servers behind a load balancer. Each server is running a memcached
I have an application that is load balanced across two web servers (soon to
I have two production web servers that are load balanced and that sit in
We have a website that runs on two load balanced servers. We use the
We have a site which sits on two load balanced application servers (Win 2K3)
We have a website that runs on two load balanced servers. We used the
We have a website load balanced across two servers that calls into a WCF
We have two tomcat servers load-balanced behind apache. Several times now we'e gotten reports

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.