如何恢复回购同步 [英] How to resume repo sync

查看:46
本文介绍了如何恢复回购同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我如何恢复同步命令?

Can anyone please mention how to resume the sync command?

我遵循了以下步骤:$ repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b eclair$ 回购同步

I followed the following steps: $ repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b eclair $ repo sync

同步耗时超过 6 个小时,由于带宽不足,我不得不自己终止同步.有什么办法可以从上一个会话恢复同步?我可以看到创建了以下文件夹:

The sync took more than 6 hours and I had to terminate the sync myself due to shortgae of bandwidth. Is there any way I can resume the sync from the previous session? I can see that the following folders are created:

仿生.git可启动构建.gitcts.git还有更多....

bionic.git bootable build.git cts.git and many more....

我每天只能使用 6 小时的免费带宽,我必须在这段时间内进行同步.非常感谢任何帮助.

I have access to free bandwidth only for 6 hours in a day, and I have to do the sync within this time. Any help is really appreciated.

推荐答案

一个repo"包含 176 个项目",其中一些非常大(>100k 个对象)如果某些项目已完全下载,则您只能恢复同步,而其他项目则没有.但是您无法恢复一个大项目的中断同步.这是 Git 手册引用:

a "repo" consists of 176 "projects", some of them are very large (>100k of objects) you can only resume sync if some projects are fully downloaded, but others are not. but you cannot resume an interrupted sync of one big project. here's, a Git manual quote:

克隆大型存储库时(例如如 KDE、Open Office、Linux 内核)目前没有办法重启一个中断的克隆.可能需要对于用户来说,相当长的时间一个小管道的末端来下载数据,如果克隆被中断在用户当前需要的中间从头开始再试一次.对于某些用户,这可能使克隆一个大的变得不可能存储库.

When cloning a large repository (such as KDE, Open Office, Linux kernel) there is currently no way to restart an interrupted clone. It may take considerable time for a user on the end of a small pipe to download the data, and if the clone is interrupted in the middle the user currently needs to start over from the beginning and try again. For some users this may make it impossible to clone a large repository.

所以,如果你真的想把这些文件传输到你的机器上——你最好从你的网络访问一些 shell,在那里传输文件,然后用一些可重启的方法同步你的本地 PC 和那个远程 shell,例如 RSync.

So, if you really want to transfer these files to your machine - you'd better get access to some shell out of your network, transfer files there, and then sync your local PC and that remote shell with some restartable method, such as RSync.

或者甚至将所有内容远程压缩到一个大档案中,然后使用您最喜欢的下载管理器将其下载到您的机器上.

Or even remotely compress all that things in one big archive, and download it to your machine with your favourite download manager.

这篇关于如何恢复回购同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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