Re: how to backup git
- From
- Heikki Orsila <shdl@zakalwe.fi>
- Date
- May 12, 2008, 15:27 UTC
- Message-ID
- <20080512152731.GM31039@zakalwe.fi>
- In-Reply-To
- <alpine.DEB.1.00.0805121606010.30431@racer>
On Mon, May 12, 2008 at 04:08:21PM +0100, Johannes Schindelin wrote:
Show 7 quoted lines
> No, rsync is particularly dumb in that respect. The safest thing would be > to back up the reflogs first (e.g. with rsync), then repack and then clone > (the clone will transmit the objects referenced by the reflogs, too). > Note: the same holds _not_ true for a simple fetch. > > But then, you usually do not want to back up reflogs anyway, since they > are purely local and not visible to anybody else.
Is there a simple and efficient mechanism for incremental backups? It should be safe with respect to simultaneous repository access. Incrementals should be efficient weven when a user runs "git gc". Preferably I would like to have one file per day: myrepo.YYYY-MM-DD.increment (and occasionally myrepo.YYYY-MM-DD.full) I believe this is a common administration problem; something like "git-backup" script/tool would be nice so that not all the admins need consider these issues.
Currently, I'm doing daily clones of repos, and I preserve those cloned directories.
-- Heikki Orsila heikki.orsila@iki.fi http://www.iki.fi/shd