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

Re: Renew SVN repository

From: David Weintraub <qazwart_at_gmail.com>
Date: Tue, 9 Jun 2009 11:57:13 -0400

Whoops, sorry. It is "svnadmin load". I was saying reload by using "svnadmin
load".

You might not save as much room as you think. Subversion stores files using
"diff" format. For example, if I change one line in a 2Gb text file,
Subverision only stores that one line of diff.

Where you could save room by trimming the repository is binary files or
totally dead projects where you not only delete a branch or two, but the
entire portion of the archive dedicated to this project.

You shouldn't store binary files in Subversion -- especially if these files
are constantly being updated. For example, don't store build results in
Subversion. Instead, find a release repository manager (we use Nexus) to
store your built results. There are many reasons why this isn't a good idea,
but the main one is the amount of room these binaries take up and their very
short lifespan. In Subversion, there's no "remove version" or "delete
artifact" command which would allow you to easily free up space.

If you use Ant, take a look at Ivy as a way of fetching jarfiles for your
builds. Or, you can always use the <get> task in Ant.

The only way to remove anything from a repository is a dump/filter/reload
repository procedure. That will take your repository down while you're doing
this type of maintenance.

On Tue, Jun 9, 2009 at 11:37 AM, Andrea Antonio Maleci
<A.Maleci_at_iwbank.it>wrote:

> That’s what I did, but I still have data (read space used) on my
> repository.
>
> My backups are everyday bigger, and I don’t find any way to reduce it.
>
> Any other idea? No tools indeed?
>
>
>
> P.S. There is no option of svnadmin called reload on SVN 1.5.6.
>
> Do you mean “svnadmin load”?
>
>
>
> *From:* David Weintraub [mailto:qazwart_at_gmail.com]
> *Sent:* martedì 9 giugno 2009 17.22
> *To:* Andrea Antonio Maleci
> *Cc:* users_at_subversion.tigris.org
> *Subject:* Re: Renew SVN repository
>
>
>
> Just delete the dead branches with "svn delete". The history will still be
> there, but developers won't be able to access those branches (unless they
> use pegged revisions).
>
> Otherwise, you'll have to use svnadmin dump, filter, then "svnadmin
> reload". And, that's not fun.
>
> On Tue, Jun 9, 2009 at 8:09 AM, Andrea Antonio Maleci <A.Maleci_at_iwbank.it>
> wrote:
>
> Hi all,
>
> I’m working on a very efficient 1.5.6 SVN repository.
>
> Now this repository is very big, with a lot of branches in end of life and
> some other still alive.
>
> I would like to renew it maintaining one month history, maintaining
> branches still alive but ignoring dead branches.
>
> There is any tool or best practice to do it?
>
>
>
> Thanks,
>
> Andrea
>
>
>
>
> --
> David Weintraub
> qazwart_at_gmail.com
>

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2360674
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-09 17:58:15 CEST

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.