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

Re: how to backup git

From
Daniel Barkalow <barkalow@iabervon.org>
Date
May 12, 2008, 23:43 UTC
Message-ID
<alpine.LNX.1.00.0805121909440.19665@iabervon.org>
In-Reply-To
<7vej87xioc.fsf@gitster.siamese.dyndns.org>
On Mon, 12 May 2008, Junio C Hamano wrote:
> Daniel Barkalow <barkalow@iabervon.org> writes:
> 
> I think suggestions from old timers on this thread to first "git fetch" is
> to handle that concern.

Yeah, "git fetch" is the right solution (although it's a pain to do a backup of "every repo under <path>" or "every repo anywhere under <path>" that way, which I suspect of being the real issue). I just wanted to get a note into this thread of what problems using rsync can and cannot have, since it's different (both more and less reliable) from what the original poster asked about.

> It may not get the commit that is being created simultaneously when such 
> a fetch to backup repository is running (but that will be backed up 
> during the next round), but at least the contents of the backup 
> repository would be self contained and correct.

And simultaneous commit isn't really an issue; nothing will back up work you do right after the backup runs, and users can't tell whether they did the commit before or after the backup if it's close.

	-Daniel
*This .sig left intentionally blank*
Previous: Junio C Hamano
Message 21 of 21 in “how to backup git”
  1. bill lamMay 12, 2008
  2. Tobias SarnowskiMay 12, 2008
  3. Sverre Hvammen JohansenMay 12, 2008
  4. Eric HanchrowMay 12, 2008
  5. Johannes SchindelinMay 12, 2008
  6. bill lamMay 12, 2008
  7. Miklos VajnaMay 12, 2008
  8. Johannes SchindelinMay 12, 2008
  9. Heikki OrsilaMay 12, 2008
  10. Johannes SchindelinMay 12, 2008
  11. Heikki OrsilaMay 12, 2008
  12. Johannes SchindelinMay 12, 2008
  13. Heikki OrsilaMay 12, 2008
  14. Heikki OrsilaMay 12, 2008
  15. Tim HarperMay 12, 2008
  16. Heikki OrsilaMay 12, 2008
  17. Sverre RabbelierMay 12, 2008
  18. Jakub NarebskiMay 12, 2008
  19. Daniel BarkalowMay 12, 2008
  20. Junio C HamanoMay 12, 2008
  21. Daniel BarkalowMay 12, 2008

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.