Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I reduce the size of a Subversion repository?

Tags:

svn

diskspace

I have a pair of svn repositories which are significantly larger than others. They're not too big for svn, but they're taking a lot of disk space I'd rather be using for something else.

What strategies are available for reducing the disk use of svn repositories? I tried the "removing dead transactions" section described here but that didn't get me anywhere. What else should I try?

ETA: Is this question better asked on Server Fault?

like image 365
pjmorse Avatar asked Sep 22 '10 15:09

pjmorse


People also ask

How do I find my SVN repository size?

To see disk space usage for an individual Subversion repository, click Repositories in the main navigation bar, select the checkbox for the repository and click Info. To see the disk space used by all repositories, see the Disk space chart in the Administration > Statistics page. Questions? Comments?

What is SVN pristine?

SVN stores a pristine copy of the base revision (i.e., the unmodified checked-out revision) of each file in the working copy. These pristine copies are known as "text bases" and are used for performing offline diffs, and for transmitting deltas back to the server when committing.


1 Answers

If the used disk space is more important for you than the version history, then you could make a clean checkout and reimport your projects into a new repository. The old repositories could then be stored in a compressed archive.

If you don't want to lose the complete history, then this article might be interesting for you: Delete parts of subversion history

like image 136
splash Avatar answered Sep 19 '22 05:09

splash