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

Re: Can you chop ancient stuff from a repository?

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-09-08 15:01:05 CEST

Lee Merrill wrote:
> Hi everyone,
> Why can't you do the "svnadmin dump -r 1:5000 repos" to back up the
> old revisions, then an "svnadmin dump -r 5001:HEAD" and restore this, to
> have a new repository without the old revisions? All your revision
> numbers have changed for the new version, but that's the only drawback
> (unless I'm missing something here).

Which means all existing working copies must be erased and re-checked out.
For any dev team of a significant size, that's a severe pain.

What's more, if you have any copies with the source and destination revision
split over the boundary, the dump will fail to load into an empty
repository. Svnadmin dump will warn you of this.

Max.

>
> Lee
>
>> Wadsworth, Eric (Contractor) wrote:
>>
>>> We've been using subversion for about a year, and our repository is
>>> getting
>>> bulky. We are looking for a way to amputate the really old stuff, so our
>>> backups are smaller and more managable. We very rarely need revisions
>>> more
>>> than 6 months old. We'd keep an archive of the complete repository, of
>>> course, just in case.
>>
>>
>> Suppose up to r5000 is considered 'old' and can be 'frozen' - by which
>> I mean, we will back it up once, secure those backups, and not back it
>> up ever again. Note the tradeoff is that you will not be backing up
>> any changes to log messages or other revprops in the old range - that
>> shouldn't be a problem, if you've set the threshold sufficiently far
>> in the past, but to be sure, you may want to edit the
>> pre-revprop-change hook to disallow revprop changes on 'frozen'
>> revisions.
>>
>> We do a 'freezing' backup: "svnadmin dump -r 1:5000 repos".
>>
>> Now, your routine backup becomes "svnadmin dump --incremental -r
>> 5001:HEAD repos".
>> Note that you *will* *need* the r1-r5000 dump too should you ever need
>> to restore this backup.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 8 15:02:04 2004

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.