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

RE: svnadmin: Malformed file

From: Reedick, Andrew <Andrew.Reedick_at_BellSouth.com>
Date: 2006-10-05 16:29:50 CEST

> -----Original Message-----
> From: John Szakmeister [mailto:john@szakmeister.net]
> Sent: Wednesday, October 04, 2006 8:53 PM
> To: Reedick, Andrew
> Cc: Johnathan Gifford; users@subversion.tigris.org
> Subject: Re: svnadmin: Malformed file
>
>
> ----- Andrew Reedick <Andrew.Reedick@BellSouth.com> wrote:
> > > -----Original Message-----
> > > From: Johnathan Gifford [mailto:jgifford@wernervas.com]
> > > Sent: Wednesday, October 04, 2006 4:43 PM
> > > To: users@subversion.tigris.org
> > > Subject: Re: svnadmin: Malformed file
> >
> >
> > > Unless you dump your repository or run svnadmin verify by
> > > chance, you'll never know you have a problem. So the moral of the
> > > story, schedule svnadmin verify to run at least weekly, if not
> > daily.
> >
> >
> > Does 'svnadmin verify' return a meaningful exit code or have a
> > particular error message that a script can parse for?
>
> Yes. 0 for success (everything is okay), non-zero for an error.
>

I have empirically confirmed your statement. *grumble*

./verify.sh
ERROR! verify failed for the_third_biggest_repository_we_have

#!/usr/bin/bash

find * -type d -prune |
while read i
do
        svnadmin verify $i > verify.$i.log 2>&1
        if [ $? -ne 0 ]
        then
                echo "ERROR! verify failed for $i"
        fi
done

*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA624

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 5 16:31:16 2006

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.