开发者

SVN Server occupying a lot of space

I have created an SVN server long time back. I have been storing some binary files (doc files) along with codes. After every edit size increases cuz SVN saves a new copy of binary file. Now the svn is occupying alot of space.

Q1. I want to delete all previous revision of the binary files,开发者_如何学C keeping previous revisions of my codes intact, how do I do that?

Q2. Also is there any setting in SVN where I can customize it? Like "for specific folder dont store more than 10 revisions".


Q1. You're going to have to dump the repository and filter it. Have a look for "svnadmin dump filter".

(have a look here: http://svnbook.red-bean.com/en/1.5/svn.ref.svndumpfilter.html and http://svnbook.red-bean.com/en/1.5/svn.reposadmin.maint.html#svn.reposadmin.maint.tk.svndumpfilter)

Q2. No, not as far as I know. However you could periodically run a script using the dump filter to delete previous revisions.

Generally if the binaries can be built from the source code in subversion you don't 'need' to store the binaries (however sometimes it can be useful!).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜