views:

665

answers:

2

I am getting an error when trying to restore a svn repository taken from another machine. The error is

svnadmin: Dump stream contains a malformed header (with no ':') at

The dump was created on a subversion 1.5 server and I am loading to a new subversion 1.6 server. I was able to load several other repositories successfully to the new server. The new server is VisualSVN Server.

A: 

as far as I know (I cannot see the dump..), this happens by piping the stdout and stderr into the dumpfile.

So you should dump again and only take stdout into your dump file.

Did you see the output while dumping the repository("Dumped revision 10", "Dumped Revision 11" ..etc)?

Peter Parker
The output doesn't contain any "Dumped revision..." messages. It does have Windows CR/LF pairs which I don't think should be a problem.
Chief A-G
can you show us the lines of the dump svn is complaining about?
Peter Parker
A: 

Try to cleanup your dump first

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

then try to load the new clean dump

svnadmin load /new/path/to/your/repository < ./repository.clear-dump
William Notowidagdo