git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Israel Garcia <igalvarez@gmail.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: git@vger.kernel.org
Subject: Re: backup git repo on every commit
Date: Tue, 13 Oct 2009 13:14:16 -0500	[thread overview]
Message-ID: <194a2c240910131114q19b6c822t5806d20005341cb4@mail.gmail.com> (raw)
In-Reply-To: <20091013174913.GV9261@spearce.org>

BTW, is there any git-dump or git-backup command to do some kind of
backup I'm looking for?

regards,

Israel.

On 10/13/09, Shawn O. Pearce <spearce@spearce.org> wrote:
> Israel Garcia <igalvarez@gmail.com> wrote:
>> Sorry to ask again, but I'm a little confuse about how git work in my
>> case.
>> I use gitosis on a server where I have all repos
>> (/usr/local/git/repositories/), so different people clone their repos
>> on their computers. What I want is to backup, on gitosis server, all
>> repos in /backups/git/repositories/ after every commit. So, my
>> questions are:
>>
>> Do I have to run these two comands on tha gitosis server?
>
> Yes.
>
>> The post-commit are execute on gitosis server or on the remote pc?
>
> Actually, you need the post-update hook.  post-commit doesn't run
> on the gitosis server.
>
> I suggested post-commit because I thought you were talking about
> backing up your local working directory each time you called
> "git commit".  But since you are actually backing up every
> "git push" you need to use the hooks invoked by that instead.
>
> --
> Shawn.
>


-- 
Regards;
Israel Garcia

  parent reply	other threads:[~2009-10-13 18:24 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 [this message]
2009-10-13 18:18             ` Shawn O. Pearce
2009-10-12 18:35   ` Christian Himpel
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=194a2c240910131114q19b6c822t5806d20005341cb4@mail.gmail.com \
    --to=igalvarez@gmail.com \
    --cc=git@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).