git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: backup git repo on every commit

From
Israel Garcia <igalvarez@gmail.com>
Date
Oct 13, 2009, 18:14 UTC
Message-ID
<194a2c240910131114q19b6c822t5806d20005341cb4@mail.gmail.com>
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:
Show 26 quoted lines
> 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
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 11 of 14 in “backup git repo on every commit”
  1. Israel GarciaOct 12, 2009
  2. Christian HimpelOct 12, 2009
  3. Shawn O. PearceOct 12, 2009
  4. Israel GarciaOct 12, 2009
  5. Shawn O. PearceOct 12, 2009
  6. Israel GarciaOct 12, 2009
  7. Israel GarciaOct 13, 2009
  8. Shawn O. PearceOct 13, 2009
  9. Israel GarciaOct 13, 2009
  10. Shawn O. PearceOct 13, 2009
  11. Israel GarciaOct 13, 2009
  12. Shawn O. PearceOct 13, 2009
  13. Christian HimpelOct 12, 2009
  14. Shawn O. PearceOct 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.