如何减小 Subversion 存储库的大小? [英] How can I reduce the size of a Subversion repository?

查看:47
本文介绍了如何减小 Subversion 存储库的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一对 svn 存储库,它们比其他存储库大得多.它们对于 svn 来说不算太大,但它们占用了大量磁盘空间,我宁愿将其用于其他用途.

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.

有哪些策略可以减少 svn 存储库的磁盘使用?我尝试了此处描述的删除无效交易"部分但这并没有让我去任何地方.我还应该尝试什么?

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:在服务器故障上问这个问题更好吗?

ETA: Is this question better asked on Server Fault?

推荐答案

如果已用磁盘空间对您来说比版本历史记录更重要,那么您可以进行干净的检出并将您的项目重新导入到新的存储库中.然后可以将旧存储库存储在压缩存档中.

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

这篇关于如何减小 Subversion 存储库的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆