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

Re: Compact Repository?

From: Wayne Pedersen <waynelist_at_data-trak.net>
Date: 2004-10-12 23:43:43 CEST

Thanks Simon - this helped me get started.

I ran such commands successfully, but I am still rather confused.

I ran:
svnadmin dump <repos> --deltify > <file1> (created a 160MB file)
and
svnadmin dump <repos> -r 58:HEAD --deltify > <file2> (Created a 233MB File)

then I ran
svanadmin load <repos> < <file2>

When I checked the disk space used, the whole repository is still using
the same amount of disk space as before. When browsing through the
repository, i noticed that many files were still listed with older
revision numbers.

This process did not seem to help me make my repository any smaller
(meaning, use less disk space by throwing away unneeded revisions).

I'm no Subversion or CVS expert, but surely there is a way that I can
truncate or drop unneeded revisions.

Thanks!

Wayne P.

McKenna, Simon (RGH) wrote:
> Hi Wayne,
>
> -=> Is there a way I can compact a repository? For example, I have a
> -=> repository that is getting quite large. I do not need any
> -=> revisions before revision 58. Is there a way I can delete all
> -=> revisions 1-57 to reclaim some disk space?
>
> How about a dump+load using svnadmin?
>
> http://svnbook.red-bean.com/svnbook-1.1/re31.html
>
> Note that dump allows a revision range,
> so you should be able to use -r 58:HEAD
>
> Personally I'd do it in 2 steps,
> - dump all revisions and archive
> - dump 58:HEAD and then load.
>
>
> peace - si
> sshnug.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 12 23:44:19 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.