Re: how to backup git
- From
- Heikki Orsila <shdl@zakalwe.fi>
- Date
- May 12, 2008, 18:36 UTC
- Message-ID
- <20080512183615.GO31039@zakalwe.fi>
- In-Reply-To
- <alpine.DEB.1.00.0805121920120.30431@racer>
On Mon, May 12, 2008 at 07:21:02PM +0100, Johannes Schindelin wrote:
> Heikki, why don't you just go with the "git fetch" approach I described? > We do not need "git backup" when "git fetch" does already what you want.
I need efficient (small) daily increment files. What I could do is something like:
1. rm -rf yesterday ; mv today yesterday
2. git clone yesterday today
3. cd today && git fetch /path/to/repo
4. create an increment file (from yesterday to today) or a full
The above should just be something like (why not make this easy?):
1. git backup /path/to/repo /backup/location/
And restoration should be something like:
1. git backup --restore /backup/location/foo /path/to/repo
Am I missing something?
-- Heikki Orsila heikki.orsila@iki.fi http://www.iki.fi/shd