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

Re: Removing unused logs

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2003-10-30 20:21:02 CET

"Sander Striker" <striker@apache.org> writes:

> Hi,
>
> In #1571 there is a patch that provides us with svnadmin hotcopy:
>
> svnadmin hotcopy [--cleanlogs] SRC DEST
>
> The patch is looking good, but I have some questions regarding
> the pruning of logs.
>
> The command comes with an option --cleanlogs, which removes the logs
> not in use anymore from SRC. Now, I can see why it would do that.
> I'm wondering if it should remove the logs from DEST aswell, or not
> to touch it. Basically, what if I want to clean the logs from DEST,
> am I back to using svnadmin lsdblogs | xargs rm?
>
> Or should be grow a command cleanlogs, which does what the --cleanlogs
> option to hotcopy does? If we do that, the user can decide when to
> clean out logs (without requiring a hotcopy), safely all the time.
> Then there is also the option of the user using svnadmin cleanlogs on
> DEST. hotbackup.py can use svnadmin hotcopy SRC DEST, followed by
> svnadmin cleanlogs SRC to maintain current behaviour.

If we treat as special generic log file cleanup, then we should also
provide a subcommand to relocate unused logs elsewhere (for backup
purposes). But this is just silly. The removal and relocation of
logfiles can be done just fine with xargs or with a custom wrapper
script (for those on xargs-impaired OSes). We don't need to promote
every permutation of every command-line operation to a first-class
subcommand.

So:

     +0 on --cleanlogs removing logs no longer in use by the DEST
        repos from SRC repos (that is what the option does, right)?
        This insures th at the subcommand never removes logs from SRC
        that it doesn't have a copy of in DEST. We don't strictly
        need this option at all.

     -1 on --cleanlogs removing that same set of logs from the DEST
        location. I'd like to guarantee that if you never removed
        logs by any external means, running 'svnadmin hotcopy
        --cleanlogs' routinely on your repository will a) keep your
        live repos log count as low as safely possible, and b)
        produces a set of backups from which every log file necessary
        for catastrophic recovery can be gleaned.

     -1 (no veto) on 'svnadmin cleanlogs'

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 30 20:22:22 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.