如何继续Subversion中失败的负载 [英] How to continue a load that has failed in Subversion

查看:174
本文介绍了如何继续Subversion中失败的负载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始将subversion转储加载到存储库中。在它完成之前,我耗尽了配额并停止了命令

I have started to load a subversion dump into a repository. Before it could finish, I exhausted my quota and the command stopped


<<<开始新的交易,基于原始修订版327
*编辑路径:XXX / YYY / Makefile ...完成。
svnadmin:无法写入文件'/XXX/db/txn-protorevs/2738-24o.rev':磁盘配额超过

<<< Started new transaction, based on original revision 327 * editing path : XXX/YYY/Makefile ... done. svnadmin: Can't write to file '/XXX/db/txn-protorevs/2738-24o.rev': Disk quota exceed

我已经要求更多配额,但现在我不确定如何继续导入。我应该简单地重做相同的命令吗?

I have asked for more quota but now I am not sure how to continue the import. Should I simply redo the same command ?

svnadmin load --parent-dir Software/xxx_modules /XXX/YYY < ~/xxx.svn.dmp

或者有没有办法在修订时重新启动导入失败(327)?

Or is there a way to restart the import at the revision where it failed (327) ?

推荐答案

以下是我最终的做法。导入修订版327时知道加载失败:

Here is how I did it in the end. Knowing that the load failed when importing revision 327 :

# Move the first 4 lines of the dump to new file
head -4 ~/xxx_modules.svn.dmp > partial.dump

# Find out where is the beginning of revision 327 that failed
grep -n "Revision-number: 327" ~/xxx_modules.svn.dmp

# Copy content of dump from that line (change X)
tail -n +X ~/xxx_modules.svn.dmp >> partial.dump

# Load using this partial dump
svnadmin load --parent-dir Software/xxx_modules /xxx/zzz/ < partial.dump

这篇关于如何继续Subversion中失败的负载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆