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

Re: compact repository (many files)

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 26 May 2010 18:10:32 +0200

On Wed, May 26, 2010 at 05:53:17PM +0200, Paul Ebermann wrote:
> The problem now is that I have a quota limitation of 30000 files here (additionally to a
> size limit), and my svn repository fills now about 1/6 of this, steadily growing, forcing
> me to delete other files ...
>
> Is there any way to reduce the file number of the repository without throwing away
> information? As in, throw the changes in revisions 0 ... 999 together in one file (and
> this way even safe some space for better compression)? (I don't care for worse
> performance, as those old revisions are used only very seldom.)

Yes, there is a way.

If your university does not yet have svn 1.6 installed, you'll need to
install it somehow. Then upgrade your repository to 1.6 format using
svnadmin upgrade, and use the svnadmin pack subcommand:

 $ svnadmin help pack
 
 pack: usage: svnadmin pack REPOS_PATH
 
 Possibly compact the repository into a more efficient storage model.
 This may not apply to all repositories, in which case, exit.

This command is new in 1.6. It only works with FSFS repositories.
It will make the repository use less inodes by collapsing every
1000 revisions into a single file.

If you want svn to collapse revisions more often, you'll need to
re-compile Subversion after tweaking the SVN_FS_FS_DEFAULT_MAX_FILES_PER_DIR
constant in subversion/libsvn_fs_fs/fs_fs.c

Stefan
Received on 2010-05-26 18:11:16 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.