简体   繁体   English

压缩 A.dump 文件

[英]Compressing A .dump file

I am porting a source SVN repository to the SVN repository of our own company.我正在将源代码 SVN 存储库移植到我们自己公司的 SVN 存储库。 I have created a.dump file of all the files inside the source repository using CMD. But the problem for me is that the size of the.dump file is too large.我已经使用 CMD 创建了源存储库中所有文件的.dump 文件。但对我来说问题是.dump 文件的大小太大。 Is it possible to somehow reduce the size of it or compress it during or after its creation?是否有可能在创建期间或之后以某种方式减小它的大小或压缩它?

I haven't really found a good way to do so and we have space limit on our own repository, so I need to reduce the size.我还没有真正找到这样做的好方法,而且我们自己的存储库有空间限制,所以我需要减小大小。

  1. Most likely, you don't need to use svnadmin dump and svnadmin load to migrate the repository onto a new server.很可能,您不需要使用svnadmin dumpsvnadmin load将存储库迁移到新服务器上。 The repository can be copied as is into the directory with all repositories on the new server and will work just fine.存储库可以按原样复制到新服务器上所有存储库的目录中,并且可以正常工作。 Eg, use svnadmin hotcopy or copy the repository directory when the server services are stopped on the old server.例如,当旧服务器上的服务器服务停止时,使用svnadmin hotcopy或复制存储库目录。

  2. But if for some reason you are required to use svnadmin dump , you can try the following options to reduce the size of the file it generates:但是如果出于某种原因你需要使用svnadmin dump ,你可以尝试以下选项来减小它生成的文件的大小:

    • Use the --deltas option with svnadmin dump .--deltas选项与svnadmin dump一起使用。 You can find information about this option in SVNBook.您可以在 SVNBook 中找到有关此选项的信息。
    • Pipe the svnadmin dump output into a compressed file. Pipe svnadmin dump到一个压缩文件中。

PS If you are using VisualSVN Server, then read the article KB10 or use backups to move the repository . PS 如果您使用的是 VisualSVN 服务器,请阅读文章KB10使用备份移动存储库 You don't need to use svnadmin dump and svnadmin load when migrating repositories onto VisualSVN Server in the majority of cases.在大多数情况下,将存储库迁移到 VisualSVN 服务器时,您不需要使用svnadmin dumpsvnadmin load

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM