Skip to main content

Export SVN repository

It'sAt first it seems quite straightforwardforward to do this, but I have ran into the issue of encoding problems. And trying to get a huge (40G) dumpfile into the container.

What did work for me:

1. Have a bind path in your container, to manage the large file

image.png

2. Use the container and dump the file into this path

svnrdump  dump -r0:HEAD [URL_TO_YOUR_REPO] > Your_dumpfile.dmp

 


What didn't work for me:

 

This is the official documentation :  dump your SVN   and import it back 

svnadmin dump /path/to/your/old/repo > backup.dump
svnadmin load /path/to/your/new/repo < backup.dump.dmp

If you areredirect inthe ainput docker,to your host, it might be that you do not have enough space in your docker. It will be possible using redirectscircumvents the output.

large

First position  yourselffile in the folderdocker. you

want the dump to end up.
Then dump the file to your .dmp file.

cd /tmp
docker exec -it edf77623c9207 svnadmin dump /home/svn/YourRepository > YourRepository_svn.dmp

But importing it back, an error is produced:

 

' into a number04: Could not convert ' 2