How can I reduce the size of a Subversion repository?

pjmorse picture pjmorse · Sep 22, 2010 · Viewed 16k times · Source

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?

Answer

splash picture splash · Sep 22, 2010

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