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

  • Home
  • SEARCH
  • 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 1036479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:42:38+00:00 2026-05-16T14:42:38+00:00

I will be moving Git repositories from an older SCM server to a new

  • 0

I will be moving Git repositories from an older SCM server to a new one. My main concern (other than fidelity, of course) is to minimize downtime. Here is my plan:

  1. On the new machine, clone each repository using git clone --mirror
  2. Copy over repo hooks for each repository
  3. Disallow access to old server (we use gitosis, so remove access for all users except for the new server)
  4. Move the DNS entry so the DNS alias Git users use
  5. Perform git pull for each repository on the new server.
  6. For each repository on the new server, edit the config file to remove the remote "origin" section.
  7. Turn on access to new server

Questions:

  1. Does this look right? I am specifically concerned with step #6.
  2. Is there any way to do this that will reduce downtime?

Thanks.

  • 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-05-16T14:42:39+00:00Added an answer on May 16, 2026 at 2:42 pm

    I would (if there are no communication possible between old server and new server):

    • bundle each repo using git bundle
    • copy the bundle on the new server
    • create bare repos
    • git fetch from those bundles in each of the empty bare repo (no origin to set)
    • copy hover the hooks
    • Disallow access to old server
    • make a last git bundle on each repo (incremental bundle, very quick)
    • copy those small bundles
    • git fetch the increment from the small incremental bundles
      </ downtime: no origin to remove>
    • restore access

    If there is communication possible (through SSL) between the new and the old server:

    • I would create a special “migration” gitosis user, with all projects access
    • clone --bare each projects on the new server
    • copy hover the hooks
    • Disallow access to old server
    • make a last git fetch on each cloned repo
    • remove origin
      </ downtime>
    • restore access
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is the scenario: We will be moving the development environment from servers to
I have the task of migrating my team & source from git to Perforce,
I'm designing a music player app for Android that will feature pop-up controls. I'm
![background.png][1] ![card.png][2] want to show this card.png in button and background image will be
I have two vectors defining two separate points in a three-dimensional space. One is
I would like to display a .png file from the R.drawable to the screen.
I'm trying to animate a UIButton to move randomly around the screen in different
I'm inserting some items into array with randomly created indexes, for example like this:
I found this Pinch-to-zoom example at http://forums.create.msdn.com Here is the xaml: <Grid x:Name=ContentPanel Grid.Row=1
I have about 50 small sprites I want to move around a layer. I've

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.