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

Re: "log" files, revision number

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-03-11 19:49:34 CET

Chris Wilson <chris@netservers.co.uk> writes:

> Hi all,
>
> I've been using subversion pretty heavily for a while, and I've noticed
> that a large number of "log.0000000*" files are building up in the "db"
> subdirectory under my subversion root. There are about 3500 of them at 1Mb
> each, eating up about 3Gb of disk space.
>
> Are they safe to delete? Are they even necessary? Are they supposed to be
> deleted automatically at some point? I can see them becoming a maintenance
> headache =(. I'm running 0.17.1 (r4559), compiled Jan 24 2003.

Yes, just run 'db_archive -a' in the db area of your repository. Any
logfiles it lists are no longer needed, and can be removed.

I was about to tell you to RTFM, but then I looked at chapter 5 of the
Subversion Book, and I think it's not providing this information
clearly. It has a single paragraph that essentially says, "you should
use db_archive to cleanup unused logs." But it doesn't say how
(db_archive -a), and this task isn't part of any prominent list of
"routine things an administrator needs to do". The bulleted list at
the beginning of the "Repository Cleanup" section sort of fits the
bill, but it's all described in terms of 'svnadmin' actions. Maybe
cmpilato should generalize that list a bit more, and add 'db_archive
-a | xargs rm' to it?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 11 17:51:04 2003

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

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