threads / discuss / 41535

Restore Question

Subject: Restore Question

## tl;dr

3 messages between Feb 26, 2016 and Feb 26, 2016.

replies: 2people: 2as markdown or json

Gerald· Feb 26, 2016, 14:18 UTC · lore

I have git running on a VMware virtual machine. I backup the virtual machine every day. How do I restore git from a restore of the virtual machine?

Kevin Daudt· Feb 26, 2016, 16:44 UTC · re: Gerald · lore

Re: Restore Question

On Fri, Feb 26, 2016 at 02:18:16PM +0000, Gerald wrote:
> I have git running on a VMware virtual machine.  I backup the virtual
> machine every day.  How do I restore git from a restore of the virtual machine?
> 

Can you explain what you mean exactly with restoring git? It's unclear what you want to achieve.

Retrieving a git repository is just a matter of copying the entiry repository directory (including .git dir).

Kevin Daudt· Feb 26, 2016, 17:13 UTC · lore

Re: Restore Question

On Fri, Feb 26, 2016 at 04:53:35PM +0000, Gerald  McKinley wrote:
Show 22 quoted lines
> I have git running on a vm.  One of the repos got messed up.  I restored the
> vm from the previous day.  I gave the vm a different ip address and hostname.
> I did not see all my files in the repo.
> 
> -----Original Message-----
> From: Kevin Daudt [mailto:me@ikke.info] 
> Sent: Friday, February 26, 2016 11:44 AM
> To: Gerald McKinley <gmckinley@ventureforth.com>
> Cc: git@vger.kernel.org
> Subject: Re: Restore Question
> 
> On Fri, Feb 26, 2016 at 02:18:16PM +0000, Gerald wrote:
> > I have git running on a VMware virtual machine.  I backup the virtual 
> > machine every day.  How do I restore git from a restore of the
> > virtual machine?
> > 
> 
> Can you explain what you mean exactly with restoring git? It's unclear
> what you want to achieve.
> 
> Retrieving a git repository is just a matter of copying the entiry
> repository directory (including .git dir).
Please don't remove the gist mailing list from the CC (use reply all).

Is this VM used to host the repositories, meaning, are they bare repositories?

You have to be a little more verbose, it's hard for us to guess what is going on.

If you have restored the VM, it's just a matter of copying the repository directory from the backup vm to the current VM..

← back to recent threads