svnadmin: Dump stream contains a malformed header (with no ':') at '* Dumped revision 0.'
场景:
在做svn迁移的时候,试图运行:
[root@g***z svn]# svnadmin load data < data_20150*13
结果报错如下:
svnadmin: Dump stream contains a malformed header (with no ':') at '* Dumped revision 0.'
解决方法如下:
grep --binary-files=text -v '^* Dumped revision' data_20150313 > data_20150*13_right
然后就可以将data_
20150*13_right通过svnadmin导入到svn repository中!
##亲测有效!!
下面是转载老外的一篇blog
-
Backing up and restoring your Subversion repository
-
-
-
-
svnadmin dump /path/to/your/repository > ./repository.dump
-
-
And how to restore it:
-
-
mkdir /new/path/to/your/repository
-
svnadmin create /new/path/to/your/repository
-
svnadmin load /new/path/to/your/repository < ./repository.dump
-
-
But don’t tell you what to do to solve the problem that will arise when you try to restore it:
-
-
svnadmin: Dump stream contains a malformed header (with no ':') at '* Dumped revision 0.'
-
-
The solution is too simple; just run:
-
-
grep --binary-files=text -v '^* Dumped revision' ./repository.dump > ./repository.clear-dump
-
-
Now you should be able to restore your subversion repository with no problems:
-
-
svnadmin load /new/path/to/your/repository < ./repository.clear-dump
-
-
PS: I don’t use hotcopy because I prefer to have a single file for these backups.
阅读(2320) | 评论(0) | 转发(0) |