* how to backup git @ 2008-05-12 6:08 bill lam 2008-05-12 6:36 ` Tobias Sarnowski ` (2 more replies) 0 siblings, 3 replies; 21+ messages in thread From: bill lam @ 2008-05-12 6:08 UTC (permalink / raw) To: git Hello, this should be a simple question. How to backup a git repository but excluding files that not under versioned? If I cp or tar or rsync the directory. All non-versioned files are added. regards, ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 6:08 how to backup git bill lam @ 2008-05-12 6:36 ` Tobias Sarnowski 2008-05-12 6:40 ` Sverre Hvammen Johansen 2008-05-12 13:11 ` Eric Hanchrow 2 siblings, 0 replies; 21+ messages in thread From: Tobias Sarnowski @ 2008-05-12 6:36 UTC (permalink / raw) To: bill lam; +Cc: git@vger.kernel.org Hi bill, Backing up the ".git" directory is all you need. You can also clone it as a bare repository (see git clone --bare). Afterwards "git checkout" is your friend. Tobias Am 12.05.2008 um 08:08 schrieb bill lam <cbill.lam@gmail.com>: > Hello, this should be a simple question. How to backup a git > repository but excluding files that not under versioned? If I cp or > tar or rsync the directory. All non-versioned files are added. > > regards ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 6:08 how to backup git bill lam 2008-05-12 6:36 ` Tobias Sarnowski @ 2008-05-12 6:40 ` Sverre Hvammen Johansen 2008-05-12 13:11 ` Eric Hanchrow 2 siblings, 0 replies; 21+ messages in thread From: Sverre Hvammen Johansen @ 2008-05-12 6:40 UTC (permalink / raw) To: git bill lam <cbill.lam <at> gmail.com> writes: > Hello, this should be a simple question. How to backup a git repository but > excluding files that not under versioned? If I cp or tar or rsync the > directory. All non-versioned files are added. A repository can be backed up by backing up the .git directory. If you want to back up the HEAD commit, use git-archive as follows: $ git archive --prefix=my-backup/ HEAD | gzip >my-backup.tar.gz If you want to back up the working directory, commit it to a temporary branch before you use 'git archive'. -- Sverre Hvammen Johansen ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 6:08 how to backup git bill lam 2008-05-12 6:36 ` Tobias Sarnowski 2008-05-12 6:40 ` Sverre Hvammen Johansen @ 2008-05-12 13:11 ` Eric Hanchrow 2008-05-12 13:28 ` Johannes Schindelin 2 siblings, 1 reply; 21+ messages in thread From: Eric Hanchrow @ 2008-05-12 13:11 UTC (permalink / raw) To: git >>>>> "bill" == bill lam <cbill.lam@gmail.com> writes: bill> Hello, this should be a simple question. How to backup a git bill> repository but excluding files that not under versioned? If I bill> cp or tar or rsync the directory. All non-versioned files are bill> added. I'd rsync just the .git directory. -- It sounds churlish to bash a film that's as bereft of bad thoughts as a tiny puppy. But when the puppy licks your face for 108 minutes, enough's enough. -- Matt Zoller Seitz, NY Times ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 13:11 ` Eric Hanchrow @ 2008-05-12 13:28 ` Johannes Schindelin 2008-05-12 14:13 ` bill lam 0 siblings, 1 reply; 21+ messages in thread From: Johannes Schindelin @ 2008-05-12 13:28 UTC (permalink / raw) To: Eric Hanchrow; +Cc: git Hi, On Mon, 12 May 2008, Eric Hanchrow wrote: > >>>>> "bill" == bill lam <cbill.lam@gmail.com> writes: > > bill> Hello, this should be a simple question. How to backup a git > bill> repository but excluding files that not under versioned? If I > bill> cp or tar or rsync the directory. All non-versioned files are > bill> added. > > I'd rsync just the .git directory. Note that this is necessary if you want to keep the reflogs (clone would not copy them). Ciao, Dscho ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 13:28 ` Johannes Schindelin @ 2008-05-12 14:13 ` bill lam 2008-05-12 14:54 ` Miklos Vajna ` (2 more replies) 0 siblings, 3 replies; 21+ messages in thread From: bill lam @ 2008-05-12 14:13 UTC (permalink / raw) To: git Johannes Schindelin wrote: >> I'd rsync just the .git directory. Thanks to all responders for quick reply. I still have a related question. svn has a hotcopy command to ensure integrity so that it is possible to backup without shutting down the svn server. If someone update the .git while I am performing backup using tar or rsync? Will the atomicity of that commit still preserve in my backup copy? regards, ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 14:13 ` bill lam @ 2008-05-12 14:54 ` Miklos Vajna 2008-05-12 15:08 ` Johannes Schindelin 2008-05-12 21:19 ` Daniel Barkalow 2 siblings, 0 replies; 21+ messages in thread From: Miklos Vajna @ 2008-05-12 14:54 UTC (permalink / raw) To: bill lam; +Cc: git [-- Attachment #1: Type: text/plain, Size: 581 bytes --] On Mon, May 12, 2008 at 10:13:27PM +0800, bill lam <cbill.lam@gmail.com> wrote: > Thanks to all responders for quick reply. I still have a related question. > svn has a hotcopy command to ensure integrity so that it is possible to > backup without shutting down the svn server. If someone update the .git > while I am performing backup using tar or rsync? Will the atomicity of that > commit still preserve in my backup copy? the only problem can be when someone runs git-gc (as it runs git-prune) while you are doing the backup. other commands never remove objects. [-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 14:13 ` bill lam 2008-05-12 14:54 ` Miklos Vajna @ 2008-05-12 15:08 ` Johannes Schindelin 2008-05-12 15:27 ` Heikki Orsila 2008-05-12 21:19 ` Daniel Barkalow 2 siblings, 1 reply; 21+ messages in thread From: Johannes Schindelin @ 2008-05-12 15:08 UTC (permalink / raw) To: bill lam; +Cc: git Hi, [please do not cull the Cc: list] On Mon, 12 May 2008, bill lam wrote: > Johannes Schindelin wrote: > > > I'd rsync just the .git directory. > > Thanks to all responders for quick reply. I still have a related > question. svn has a hotcopy command to ensure integrity so that it is > possible to backup without shutting down the svn server. If someone > update the .git while I am performing backup using tar or rsync? Will > the atomicity of that commit still preserve in my backup copy? 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. Ciao, Dscho ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 15:08 ` Johannes Schindelin @ 2008-05-12 15:27 ` Heikki Orsila 2008-05-12 17:07 ` Johannes Schindelin 0 siblings, 1 reply; 21+ messages in thread From: Heikki Orsila @ 2008-05-12 15:27 UTC (permalink / raw) To: Johannes Schindelin; +Cc: bill lam, git 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@iki.fi http://www.iki.fi/shd ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 15:27 ` Heikki Orsila @ 2008-05-12 17:07 ` Johannes Schindelin 2008-05-12 18:07 ` Heikki Orsila 0 siblings, 1 reply; 21+ messages in thread From: Johannes Schindelin @ 2008-05-12 17:07 UTC (permalink / raw) To: Heikki Orsila; +Cc: bill lam, git Hi, On Mon, 12 May 2008, Heikki Orsila wrote: > 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? Umm. "git fetch"? Like I said, it does not get the reflogs, but if you want to back up a repository, the safest is to clone once, and fetch later. Or you could set up a remote with the --mirror option, if you want to preserve the refs' namespaces. Ciao, Dscho ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 17:07 ` Johannes Schindelin @ 2008-05-12 18:07 ` Heikki Orsila 2008-05-12 18:21 ` Johannes Schindelin 0 siblings, 1 reply; 21+ messages in thread From: Heikki Orsila @ 2008-05-12 18:07 UTC (permalink / raw) To: Johannes Schindelin; +Cc: bill lam, git On Mon, May 12, 2008 at 06:07:28PM +0100, Johannes Schindelin wrote: > Hi, > > On Mon, 12 May 2008, Heikki Orsila wrote: > > > 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? > > Umm. "git fetch"? > > Like I said, it does not get the reflogs, but if you want to back up a > repository, the safest is to clone once, and fetch later. Or you could > set up a remote with the --mirror option, if you want to preserve the > refs' namespaces. Preferably some solution that does not require too much understanding of Git internals so that admins will actually use it, instead of hacking their own inefficient backup scripts. Could someone please write a "git-backup" script?-) -- Heikki Orsila heikki.orsila@iki.fi http://www.iki.fi/shd ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 18:07 ` Heikki Orsila @ 2008-05-12 18:21 ` Johannes Schindelin 2008-05-12 18:36 ` Heikki Orsila 2008-05-12 18:54 ` Jakub Narebski 0 siblings, 2 replies; 21+ messages in thread From: Johannes Schindelin @ 2008-05-12 18:21 UTC (permalink / raw) To: Heikki Orsila; +Cc: bill lam, git Hi, On Mon, 12 May 2008, Heikki Orsila wrote: > On Mon, May 12, 2008 at 06:07:28PM +0100, Johannes Schindelin wrote: > > > On Mon, 12 May 2008, Heikki Orsila wrote: > > > > > 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? > > > > Umm. "git fetch"? > > > > Like I said, it does not get the reflogs, but if you want to back up a > > repository, the safest is to clone once, and fetch later. Or you > > could set up a remote with the --mirror option, if you want to > > preserve the refs' namespaces. > > Preferably some solution that does not require too much understanding of > Git internals so that admins will actually use it, instead of hacking > their own inefficient backup scripts. > > Could someone please write a "git-backup" script?-) 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. Ciao, Dscho ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 18:21 ` Johannes Schindelin @ 2008-05-12 18:36 ` Heikki Orsila 2008-05-12 18:38 ` Heikki Orsila 2008-05-12 18:54 ` Jakub Narebski 1 sibling, 1 reply; 21+ messages in thread From: Heikki Orsila @ 2008-05-12 18:36 UTC (permalink / raw) To: Johannes Schindelin; +Cc: bill lam, git 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 ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 18:36 ` Heikki Orsila @ 2008-05-12 18:38 ` Heikki Orsila 2008-05-12 18:58 ` Tim Harper 0 siblings, 1 reply; 21+ messages in thread From: Heikki Orsila @ 2008-05-12 18:38 UTC (permalink / raw) To: Johannes Schindelin; +Cc: bill lam, git On Mon, May 12, 2008 at 09:36:15PM +0300, Heikki Orsila wrote: > 3. cd today && git fetch /path/to/repo That was a mistake, a bare fetch is not enough. -- Heikki Orsila heikki.orsila@iki.fi http://www.iki.fi/shd ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 18:38 ` Heikki Orsila @ 2008-05-12 18:58 ` Tim Harper 2008-05-12 19:10 ` Heikki Orsila 0 siblings, 1 reply; 21+ messages in thread From: Tim Harper @ 2008-05-12 18:58 UTC (permalink / raw) To: Heikki Orsila; +Cc: Johannes Schindelin, bill lam, git On May 12, 2008, at 12:38 PM, Heikki Orsila wrote: > On Mon, May 12, 2008 at 09:36:15PM +0300, Heikki Orsila wrote: >> 3. cd today && git fetch /path/to/repo > > That was a mistake, a bare fetch is not enough. Yeah, Heikki - I wonder if you're missing the point. In our case, we don't bother with repository backups here. Everyone developer has a full copy of the repository, and any one of them could be used to create a new "central" git repository. If our central git repository goes down - we've got 9 others floating around on different laptops and computers. You can't beat that kind of redundancy. You'd have to nuke Utah to take us out (btw: please don't nuke Utah). Tim > > > -- > Heikki Orsila > heikki.orsila@iki.fi > http://www.iki.fi/shd > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 18:58 ` Tim Harper @ 2008-05-12 19:10 ` Heikki Orsila 2008-05-12 19:49 ` Sverre Rabbelier 0 siblings, 1 reply; 21+ messages in thread From: Heikki Orsila @ 2008-05-12 19:10 UTC (permalink / raw) To: Tim Harper; +Cc: Johannes Schindelin, bill lam, git On Mon, May 12, 2008 at 12:58:07PM -0600, Tim Harper wrote: > In our case, we > don't bother with repository backups here. Everyone developer has a > full copy of the repository, and any one of them could be used to > create a new "central" git repository. So you assume everyone syncs everyone else often enough. I don't think many organizations want to rely on that assumption. The point is to have a simple, efficient and manageable backup system that does _not_ require knowledge of Git internals. -- Heikki Orsila heikki.orsila@iki.fi http://www.iki.fi/shd ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 19:10 ` Heikki Orsila @ 2008-05-12 19:49 ` Sverre Rabbelier 0 siblings, 0 replies; 21+ messages in thread From: Sverre Rabbelier @ 2008-05-12 19:49 UTC (permalink / raw) To: Heikki Orsila; +Cc: Tim Harper, Johannes Schindelin, bill lam, git On Mon, May 12, 2008 at 9:10 PM, Heikki Orsila <shdl@zakalwe.fi> wrote: > So you assume everyone syncs everyone else often enough. I don't think > many organizations want to rely on that assumption. The point is to > have a simple, efficient and manageable backup system that > does _not_ require knowledge of Git internals. Isn't that what Dscho and others have mentioned a few times now? Initially you git clone the repo, every few hours you have cron do a git pull and daily you do 'rm yesterday.tar.gz && mv today.tar.gz yesterday.tar.gz && tar czvf today.tar.gz .git '. Why would git need a 'backup script' for something so trivial? I reckon everybody wants a different type of backup too, so creating a 'git backup' would probably not be very usefull to most. -- Cheers, Sverre Rabbelier ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 18:21 ` Johannes Schindelin 2008-05-12 18:36 ` Heikki Orsila @ 2008-05-12 18:54 ` Jakub Narebski 1 sibling, 0 replies; 21+ messages in thread From: Jakub Narebski @ 2008-05-12 18:54 UTC (permalink / raw) To: Johannes Schindelin; +Cc: Heikki Orsila, bill lam, git Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: > On Mon, 12 May 2008, Heikki Orsila wrote: > >> On Mon, May 12, 2008 at 06:07:28PM +0100, Johannes Schindelin wrote: >> >>> On Mon, 12 May 2008, Heikki Orsila wrote: >>>> Is there a simple and efficient mechanism for incremental backups? >>> >>> Umm. "git fetch"? >>> >>> Like I said, it does not get the reflogs, but if you want to back up a >>> repository, the safest is to clone once, and fetch later. Or you >>> could set up a remote with the --mirror option, if you want to >>> preserve the refs' namespaces. >> >> Preferably some solution that does not require too much understanding of >> Git internals so that admins will actually use it, instead of hacking >> their own inefficient backup scripts. >> >> Could someone please write a "git-backup" script?-) > > 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 think that bundles (see git-bundle) would be what you want (please read GitFaq/GitTips/"Git in Nutshell" for explanation and use cases). "git fetch" (perhaps using bundle) would save state of refs (heads, remote branches, tags) and object repository. To save state of working area and index I think it would be best to use 'git-stash' before creating backup, and unstash after it; see documentation for git-stash. What is left is: reflogs, configuration, hooks, grafts and shallow, repository local excludes file, repository local attributes file[*1*]. [*1*] Which is not mentioned in Documentation/repository-layout.txt -- Jakub Narebski Poland ShadeHawk on #git ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 14:13 ` bill lam 2008-05-12 14:54 ` Miklos Vajna 2008-05-12 15:08 ` Johannes Schindelin @ 2008-05-12 21:19 ` Daniel Barkalow 2008-05-12 22:26 ` Junio C Hamano 2 siblings, 1 reply; 21+ messages in thread From: Daniel Barkalow @ 2008-05-12 21:19 UTC (permalink / raw) To: bill lam; +Cc: git On Mon, 12 May 2008, bill lam wrote: > Johannes Schindelin wrote: > > > I'd rsync just the .git directory. > > Thanks to all responders for quick reply. I still have a related question. svn > has a hotcopy command to ensure integrity so that it is possible to backup > without shutting down the svn server. If someone update the .git while I am > performing backup using tar or rsync? Will the atomicity of that commit still > preserve in my backup copy? There's the risk that the backup will start, it will copy all of the objects, then a git commit happens, which adds more objects (after rsync has passed) and updates a "refs" entry to refer to one of them, and then rsync copies the "refs" directory. It's likewise possible to have part of the information for a commit copied and part of it not. This commit will be clearly broken, however (one or more objects not found). So, essentially, every commit goes through the stages of not at all written, partially written but invalid, and valid and correct. Independantly, which commit is the latest is updated atomically. It's possible for an ill-timed backup to get a branch updated to a commit that's not yet valid in the backup. In you restored from this, you'd need to use one of several methods (mainly reflogs) to get back to the last valid commit that got backed up. On the other hand, git will never, even in this sort of backup, end up with a commit that's valid but not completely correct. -Daniel *This .sig left intentionally blank* ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 21:19 ` Daniel Barkalow @ 2008-05-12 22:26 ` Junio C Hamano 2008-05-12 23:43 ` Daniel Barkalow 0 siblings, 1 reply; 21+ messages in thread From: Junio C Hamano @ 2008-05-12 22:26 UTC (permalink / raw) To: Daniel Barkalow; +Cc: bill lam, git Daniel Barkalow <barkalow@iabervon.org> writes: > On Mon, 12 May 2008, bill lam wrote: > >> Johannes Schindelin wrote: >> > > I'd rsync just the .git directory. >> >> Thanks to all responders for quick reply. I still have a related question. svn >> has a hotcopy command to ensure integrity so that it is possible to backup >> without shutting down the svn server. If someone update the .git while I am >> performing backup using tar or rsync? Will the atomicity of that commit still >> preserve in my backup copy? > > There's the risk that the backup will start, it will copy all of the > objects, then a git commit happens, which adds more objects (after rsync > has passed) and updates a "refs" entry to refer to one of them, and then > rsync copies the "refs" directory. > > It's likewise possible to have part of the information for a commit copied > and part of it not. This commit will be clearly broken, however (one or > more objects not found). > > So, essentially, every commit goes through the stages of not at all > written, partially written but invalid, and valid and correct. > Independantly, which commit is the latest is updated atomically. It's > possible for an ill-timed backup to get a branch updated to a commit > that's not yet valid in the backup. In you restored from this, you'd need > to use one of several methods (mainly reflogs) to get back to the last > valid commit that got backed up. > > On the other hand, git will never, even in this sort of backup, end up > with a commit that's valid but not completely correct. I think suggestions from old timers on this thread to first "git fetch" is to handle that concern. 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. So a nightly fetch (perhaps with --mirror) into a backup repository, and then after the fetch finishes, copying the backup repository to tape, would give you one copy a night. Copying out from the central repository to backup repository would be incremental, and until you repack the backup repository, the tape backup of that backup repository could also be made incremental, as fetch will be append-only into its objects/ part with updates to refs/ part. ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: how to backup git 2008-05-12 22:26 ` Junio C Hamano @ 2008-05-12 23:43 ` Daniel Barkalow 0 siblings, 0 replies; 21+ messages in thread From: Daniel Barkalow @ 2008-05-12 23:43 UTC (permalink / raw) To: Junio C Hamano; +Cc: bill lam, git 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* ^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2008-05-12 23:44 UTC | newest] Thread overview: 21+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-05-12 6:08 how to backup git bill lam 2008-05-12 6:36 ` Tobias Sarnowski 2008-05-12 6:40 ` Sverre Hvammen Johansen 2008-05-12 13:11 ` Eric Hanchrow 2008-05-12 13:28 ` Johannes Schindelin 2008-05-12 14:13 ` bill lam 2008-05-12 14:54 ` Miklos Vajna 2008-05-12 15:08 ` Johannes Schindelin 2008-05-12 15:27 ` Heikki Orsila 2008-05-12 17:07 ` Johannes Schindelin 2008-05-12 18:07 ` Heikki Orsila 2008-05-12 18:21 ` Johannes Schindelin 2008-05-12 18:36 ` Heikki Orsila 2008-05-12 18:38 ` Heikki Orsila 2008-05-12 18:58 ` Tim Harper 2008-05-12 19:10 ` Heikki Orsila 2008-05-12 19:49 ` Sverre Rabbelier 2008-05-12 18:54 ` Jakub Narebski 2008-05-12 21:19 ` Daniel Barkalow 2008-05-12 22:26 ` Junio C Hamano 2008-05-12 23:43 ` Daniel Barkalow
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).