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 8657787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:36:30+00:00 2026-06-12T15:36:30+00:00

I have 3 separate servers with a sharded image directory (a0-z9). Unfortunately my rsync

  • 0

I have 3 separate servers with a sharded image directory (a0-z9). Unfortunately my rsync and php upload script broke along the way and now I have 3 unmatched directories on 3 servers that are supposed to be identical. I’m not concerned with overwriting… if it’s already there, there’s no need to overwrite it — it’s the same.

ServerA

/path/img/a0/001/
/path/img/a0/.../
/path/img/a0/999/
/path/img/../
/path/img/z9/001/
/path/img/z9/.../
/path/img/z9/999/

ServerB and ServerC have the same layout. All have the exact same 2-digit directory structure (260 directories, a0-z9). But they have different sub-directories. ServerA may have a0/001/, but this directory might be missing on servers B & C (or the other way around).

I need to merge all 3 directories.

Ultimately if c7/003/ exists on one server, it needs to exist on all 3.

How can I do this? I’ve already fixed it going forward, but I still need to clean up the current mess.

  • 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-12T15:36:31+00:00Added an answer on June 12, 2026 at 3:36 pm

    The rsync command for syncing two folders (given a good source and an outdated/broken destination) is provided below, your script dies probably because it runs too long. Try running it for smaller subdirectories.

    rsync -a --delete-after /source/images/ -e 'ssh -l username' \
        hostname:/path/to/destination/images/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What's the best way to have separate CSS for IE and other browsers? I'm
I have implemented below function in a separate .js script file which I load
I have several separate instances of the same web application running on different servers
So, I have a website that is served by 12 separate application servers without
I have a php script that generates php and javascript wrapper classes that handle
I am trying to integrate CAS on Liferay. I have separate CAS server running
Let's say I have two SQL Server databases running on separate machines, call them
I have a virtual machine running windows 2003 server. It is on a separate
Do I need to have separate/multiple workers to run multiple websites (each with a
In my ASP.NET application I have separate projects for the Data, Business and UI

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.