git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Migrating Repository without Network

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 21, 2025, 22:23 UTC
Message-ID
<xmqqo6pzsxlm.fsf@gitster.g>
In-Reply-To
<CALnO6CAKBB=MRUBSv-_pqWuUgi6d1+o_X=iq-fLzfSkCYMaiPw@mail.gmail.com>
"D. Ben Knoble" <ben.knoble@gmail.com> writes:
Show 11 quoted lines
> On Tue, Oct 21, 2025 at 10:52 AM Dennis Putnam <dap1@bellsouth.net> wrote:
>>
>> I have a server with a git repository whose NIC is no longer working. I
>> need to migrate that repository to a new server using a flash drive. I
>> can only find instructions for migrating when both servers have network
>> access. Can someone tell me how to do a migration without using a
>> network? TIA.
>
> Have a look at git-bundle(1), which was designed for something similar
> to this use case I believe. Or, rsync the repo to the flash drive and
> then off?

But bundle is only about preserving/transporting the history recorded in the repository. It does not do the repository config or the hooks. Those folks would want to migrate the entire repository data off of a failing server, so I think "rsync/cp" would be the more sensible route.

Thanks.
Previous: D. Ben KnobleNext: Konstantin Khomoutov
Message 3 of 6 in “Migrating Repository without Network”
  1. Dennis PutnamOct 21, 2025
  2. D. Ben KnobleOct 21, 2025
  3. Junio C HamanoOct 21, 2025
  4. Konstantin KhomoutovOct 22, 2025
  5. Konstantin KhomoutovOct 22, 2025
  6. Dennis PutnamOct 22, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.