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

Re: Auto-cleaning of log files?

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-04-04 01:10:05 CEST

Michael Price wrote:

> Tobias Ringstrom wrote:
>
>> I think that the ever growing amount of log files will be a surprise
>> for a
>> lot of subversion newbies. I know that it's described in the book, but I
>> fear that a lot of new users will not study the book as closely as one
>> might hope for. Built-in support for removing unused log files would
>> probably help a lot. Just a thought...
>
>
> There is built-in support. Put something like this in your post-commit
> hook.
>
> #!/bin/sh
>
> db_archive -a -h /path/to/repo/db | xargs rm

All right, this isn't exactly built-in support. But an upcoming version
of Berkeley DB /will/ provide automatic log file cleanup. I don't know
what the setup will look like, though.

I'd like to point out one thing, though: removing your log files
_without_ backing up your database first is a recipe for disaster. The
log files are there so that you can roll backwards or forwards to a
consistent state in case something goes wrong.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 4 01:10:50 2003

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