Re: how to backup git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 12, 2008 at 04:08:21PM +0100, Johannes Schindelin wrote:
> 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@xxxxxx
http://www.iki.fi/shd
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux