Search code examples
svncompressionrepositorytortoisesvndump

Compressing A .dump file


I am porting a source SVN repository to the SVN repository of our own company. 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. 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.


Solution

    1. Most likely, you don't need to use svnadmin dump and svnadmin load to migrate the repository onto a new server. The repository can be copied as is into the directory with all repositories on the new server and will work just fine. E.g., use svnadmin hotcopy or copy the repository directory when the server services are stopped on the old server.

    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:

      • Use the --deltas option with svnadmin dump. You can find information about this option in SVNBook.
      • Pipe the svnadmin dump output into a compressed file.

    PS If you are using VisualSVN Server, then read the article KB10 or use backups to move the repository. You don't need to use svnadmin dump and svnadmin load when migrating repositories onto VisualSVN Server in the majority of cases.