Error loading svnadmin

I get an error when trying to restore an svn repository taken from another computer. Error

svnadmin: dump stream contains invalid header (without ':') in

The dump was created on the subversion 1.5 server, and I upload it to the new subversion 1.6 server. I was able to upload several new repositories to a new server. The new server is the VisualSVN server.

+4
source share
5 answers

Try to clear your landfill first

grep --binary-files=text -v '^* Dumped revision' ./repository.dump > ./repository.clear-dump 

then try loading a new clean dump

 svnadmin load /new/path/to/your/repository < ./repository.clear-dump 
+4
source

as far as I know (I don’t see a dump ..), this happens by connecting stdout and stderr to dumpfile.

So, you should dump and accept only stdout in the dump file again.

Did you see the output when sending the repository ("* Reset version 10", "* Reset version 11" .. etc)?

+2
source

I had the same problem.

I wanted to import a dump file created in Linux Box. The file was tar and gzipped.

My file was "tar.gz"

I used Winzip for uncompressed, and I could not download it using cygwin.

Then I used the cygwin tar -xvzf to unzip it, and I was able to upload it to a new repository.

0
source

I wanted to add. I had the same problem as Luc M. My svnadmin load REPO_PATH <The file.svn command just did not work, the error was cryptic, I could not handle it. So I tried using tar.exe from my Cygwin installation again in the tar file that I had, and it worked on it. I also had a tar file that was archived, but I used WinZip to extract the TAR, and I think it messed it up.

0
source

Recently, I had the same message, and in the end it happened that I transferred SVN dumps via FTP without explicit request for binary transfers, so the dumps were transferred in ASCII format. Because the FTP server was a Windows machine, dumps were corrupted by Windows ends. So my recommendation is this: check your line. Hope this helps at least a little.

0
source

All Articles