我有一对 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 存储库的大小?
发布评论