From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: bill lam <cbill.lam@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: how to backup git
Date: Mon, 12 May 2008 16:08:21 +0100 (BST) [thread overview]
Message-ID: <alpine.DEB.1.00.0805121606010.30431@racer> (raw)
In-Reply-To: <48285087.3090402@gmail.com>
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
next prev parent reply other threads:[~2008-05-12 15:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-12 6:08 how to backup git bill lam
2008-05-12 6:36 ` Tobias Sarnowski
2008-05-12 6:40 ` Sverre Hvammen Johansen
2008-05-12 13:11 ` Eric Hanchrow
2008-05-12 13:28 ` Johannes Schindelin
2008-05-12 14:13 ` bill lam
2008-05-12 14:54 ` Miklos Vajna
2008-05-12 15:08 ` Johannes Schindelin [this message]
2008-05-12 15:27 ` Heikki Orsila
2008-05-12 17:07 ` Johannes Schindelin
2008-05-12 18:07 ` Heikki Orsila
2008-05-12 18:21 ` Johannes Schindelin
2008-05-12 18:36 ` Heikki Orsila
2008-05-12 18:38 ` Heikki Orsila
2008-05-12 18:58 ` Tim Harper
2008-05-12 19:10 ` Heikki Orsila
2008-05-12 19:49 ` Sverre Rabbelier
2008-05-12 18:54 ` Jakub Narebski
2008-05-12 21:19 ` Daniel Barkalow
2008-05-12 22:26 ` Junio C Hamano
2008-05-12 23:43 ` Daniel Barkalow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.1.00.0805121606010.30431@racer \
--to=johannes.schindelin@gmx.de \
--cc=cbill.lam@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox