All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Himpel <chressie@googlemail.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: Israel Garcia <igalvarez@gmail.com>, git@vger.kernel.org
Subject: Re: backup git repo on every commit
Date: Mon, 12 Oct 2009 20:35:04 +0200	[thread overview]
Message-ID: <20091012183504.GA3872@mrslave> (raw)
In-Reply-To: <20091012141544.GF9261@spearce.org>

On Mon, Oct 12, 2009 at 07:15:44AM -0700, Shawn O. Pearce wrote:
> Israel Garcia <igalvarez@gmail.com> wrote:
>   git remote add --mirror backup you@another.host:path/to/backup.git
> 
>   cat >.git/hooks/post-commit
>   #!/bin/sh
>   git push backup
>   ^D
> 
>   chmod a+x .git/hooks/post-commit

Since this is meant as a backup, is there also a sane way to push the
reflog entries as well?  Or is it okay just to copy .git/logs to the
backup repository?

Thanks,
chressie

  parent reply	other threads:[~2009-10-12 18:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 13:41 backup git repo on every commit Israel Garcia
2009-10-12 14:08 ` Christian Himpel
2009-10-12 14:15 ` Shawn O. Pearce
2009-10-12 14:25   ` Israel Garcia
2009-10-12 14:30     ` Shawn O. Pearce
2009-10-12 14:39       ` Israel Garcia
2009-10-13 16:43       ` Israel Garcia
2009-10-13 17:49         ` Shawn O. Pearce
2009-10-13 18:08           ` Israel Garcia
2009-10-13 18:18             ` Shawn O. Pearce
2009-10-13 18:14           ` Israel Garcia
2009-10-13 18:18             ` Shawn O. Pearce
2009-10-12 18:35   ` Christian Himpel [this message]
2009-10-12 18:37     ` Shawn O. Pearce

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=20091012183504.GA3872@mrslave \
    --to=chressie@googlemail.com \
    --cc=git@vger.kernel.org \
    --cc=igalvarez@gmail.com \
    --cc=spearce@spearce.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.