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.