Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2759996
  • 博文数量: 587
  • 博客积分: 6356
  • 博客等级: 准将
  • 技术积分: 6410
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-23 10:54
个人简介

器量大者,福泽必厚

文章分类

全部博文(587)

文章存档

2019年(3)

2018年(1)

2017年(29)

2016年(39)

2015年(66)

2014年(117)

2013年(136)

2012年(58)

2011年(34)

2010年(50)

2009年(38)

2008年(16)

分类: LINUX

2015-03-18 09:07:33

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

  1. Backing up and restoring your Subversion repository
  2.  
  3.  

  4. svnadmin dump /path/to/your/repository > ./repository.dump

  5. And how to restore it:

  6. mkdir /new/path/to/your/repository
  7. svnadmin create /new/path/to/your/repository
  8. svnadmin load /new/path/to/your/repository < ./repository.dump

  9. But don’t tell you what to do to solve the problem that will arise when you try to restore it:

  10. svnadmin: Dump stream contains a malformed header (with no ':') at '* Dumped revision 0.'

  11. The solution is too simple; just run:

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

  13. Now you should be able to restore your subversion repository with no problems:

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

  15. PS: I don’t use hotcopy because I prefer to have a single file for these backups.


阅读(2163) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~