[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Updating repository after restore from backup

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Tue, 29 Jan 2008 14:53:45 -0500

Helge Preuss wrote:
> Hello.
> I've lost a subversion repository in a hard disk crash. While I have a
> backup, several revisions are not available, because they were committed
> between the last backup and the crash.

Sorry to hear that. You may be interested in reading this chapter of
the book:


about setting up a sync or automatic hotbackup in your post-commit script.

> I wonder how I should go about recommitting the current state to the
> repository. Current versions are available on clients. I recognize that
> the revisions between the backup and the current state are lost, but I
> need to get the repository up to date.

Move the existing WC out of the way and check out HEAD from the
reconstituted repository to a new WC. Copy the files from the old WC
into the new WC and commit them. You lose intervening history.

If you have different people at different revs (i.e. Tom was up to date
but Sue hadn't run update in a while), you may be able to get more
history by groveling through their working copies for intermediate
revisions. This would be much harder to do, so I'm not going to
describe it at this time, unless it was vital.


To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-29 20:54:08 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.