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

Re: Safe to backup if failed svnadmin verify?

From: Mark Clements <gmane_at_kennel17.co.uk>
Date: 2007-04-27 15:56:06 CEST

So to clarify (and correct me if I'm wrong)

* Running "svnadmin hotcopy" or "svnadmin dump" on a repository that failed
"svnadmin verify" will not cause any damage to the repository, or modify it
in any way.
* "svnadmin hotcopy" will succeed, and the resulting backup will be an exact
copy of the repo, including the errors.
* "svnadmin dump" will fail when it hits the bad revision (resulting in,
what? an incomplete dump file, no dump file, a full dump with bad revisions
omitted or full dump which is corrupt/unusable?)

There is still some usefulness in backing up a damaged repository. For
example if it suffers further corruption before it gets fixed a less
corrupted backup is better than no backup. Also, if it is old revisions
that are broken we can restore them from the old backups without losing the
newest revisions that were backed up in the most recent (corrupt) version.

- Mark Clements

"Johnathan Gifford" <jgifford@wernervas.com> wrote in message
news:4631B251.158F.00BE.0@wernervas.com...
No and Yes. It's not practical continue the backup if the verify failed.
But if your backup is not overwriting a previous backup, you could continue,
but your backup will not be complete if your dumping the repository. If you
running the hot backup script. It'll do the job, but you still have the bad
revision or revision(s) and your verify will still fail.

When we discovered we had about ten bad revisions, our repo was still
working and functioning correctly until we got those revisions fixed by
CollabNet and dump and reloaded the repository with the correct revisions.
By the way, our repo was corrupted due to a hardware issue and not
Subversion/Apache.

Johnathan

>>> On Thu, Apr 26, 2007 at 7:59 PM, in message
<f0rhte$vms$1@sea.gmane.org>,
"Mark Clements" <gmane@kennel17.co.uk> wrote:
> I have setup a nightly backup script to do hotcopy and a dump of my
> repository.
>
> I also have a script that runs svnadmin verify and sends me an e- mail if
> there is a problem.
>
> My question: Is it safe to run the backup if 'verify' failed? Old backups
> are kept, so there is no issue about bad backups overwriting good ones,
just
> whether I could further damage the repo.
>
> I guess a secondary question is whether there is any point - i.e. will
the
> backup succeed, and will the backups be usable (aside from the damaged
> revisions, obviously).
>
> - Mark Clements
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e- mail: users- unsubscribe@subversion.tigris.org
> For additional commands, e- mail: users- help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 27 15:57:04 2007

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.