Re: how to backup git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

[please do not cull the Cc: list]

On Mon, 12 May 2008, bill lam wrote:

> Johannes Schindelin wrote:
> > > I'd rsync just the .git directory.
> 
> Thanks to all responders for quick reply. I still have a related 
> question. svn has a hotcopy command to ensure integrity so that it is 
> possible to backup without shutting down the svn server. If someone 
> update the .git while I am performing backup using tar or rsync? Will 
> the atomicity of that commit still preserve in my backup copy?

No, rsync is particularly dumb in that respect.  The safest thing would be 
to back up the reflogs first (e.g. with rsync), then repack and then clone 
(the clone will transmit the objects referenced by the reflogs, too).  
Note: the same holds _not_ true for a simple fetch.

But then, you usually do not want to back up reflogs anyway, since they 
are purely local and not visible to anybody else.

Ciao,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux