rajeshkumar created the topic: Reduce the size of SVN repos or cleanup revsion
How to reduce the Repos size drastically without impacting the integrity and version of the files?
How to cleanup and Reduce the size of SVN repos?
The way Subversion and CVS work is that they keep an entire history of changes, including deleted files, binary files, etc. Each revision is dependent on the last revision, so you can’t just delete and oblitrate out a revision somewhere in the middle or we corrupt repository.
There are few things we can do if we are running out of space…
Option 1: Dump and load to new repos
Removing old revisions kind of defeats the point of version control so it is not recommended but Dump out the revisions you want to keep, then put them into a new repo, and delete the old one.
New repos should be set with latest svn release which will take less disk size.
svnadmin dump /path/to/current/repo -r48:50 > svn.dump
svnadmin create /path/to/new/repo
svnadmin load /path/to/new/repo < svn.dump svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html
Option 2: svndumpfilter
Use svndumpfilter to include/exclude the particular bits you want. svndumpfilter is a command-line utility for removing history from a Subversion dump file by either excluding or including paths beginning with one or more named prefixes.
replicate the repository with svnsync after configuring path-based authorization rules that deny read access to any paths that need to be filtered from history. Unlike svndumpfilter, svnsync will automatically translate copy operations with an unreadable source path into normal additions, which is useful if history involving copy operations needs to be filtered.