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

rsync busy non-bare git repo 'source' to quiet

From
NKNeal Kreitzinger <neal@rsss.com>
Date
Mar 8, 2011, 21:25 UTC
Message-ID
<il66rd$46u$1@dough.gmane.org>

Does anyone have an example of an rsync bash script that will make a good copy of a non-bare git repo (including the working tree) while the "source" git repo is busy and the "destination" git repo is quiet?

We do not use symlinks in our working-tree or in our .git directory (unless git is using symlinks on its own behind-the-scenes that I am not aware of).

This would make it very easy for us to refresh our "beta" livebox to emulate the current "gold" livebox using a single rsync instead of a combination of rsync and git-clone/pull due to the pieces that git does not replicate (ie, hooks) and the non-git components of our git based change control menu system (which is written in bash scripts on linux).

Thanks!

v/r, Neal

Next: Jeff King
Message 1 of 5 in “rsync busy non-bare git repo 'source' to quiet”
  1. Neal KreitzingerMar 8, 2011
  2. Jeff KingMar 8, 2011
  3. Neal KreitzingerMar 8, 2011
  4. Jeff KingMar 8, 2011
  5. Neal KreitzingerMar 8, 2011

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.