暂停与播放恢复Android Repo Sync [英] Pausing & Resume Android Repo Sync

查看:92
本文介绍了暂停与播放恢复Android Repo Sync的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试同步以下存储库

I am trying to sync the following repo

repo init -u git://github.com/SlimRoms/platform_manifest.git -b jb

repo init -u git://github.com/SlimRoms/platform_manifest.git -b jb

问题是我已在30个小时左右&之前开始回购同步.它仍然不完整.(我有一个1Mbps的连接).我不想让笔记本电脑切换很长时间&想要暂停当前的同步&稍后恢复.

The problem is i have started the repo sync around 30 hours ago & its still not complete. (i have a 1Mbps connection). I dont want to keep the laptop switched for so long now & would like to pause the current sync & resume later.

因此,我进行了搜索,发现要暂停当前的下载/同步,我可以使用:

So, i searched a bit, and found out that to pause the current download/sync i could use:

  • ctrl + C
  • ctrl + Z
  • 只需关闭终端(下次它将恢复下载)自动)

所以我尝试使用ctrl + c,下载停止了.然后要恢复,我尝试了"fg",但是它没有再次开始.我得到的错误是:

So i tried using ctrl+c, the download stopped. And then to resume i tried "fg", but it doesnt start again. The error i get is:

bash:fg:当前:没有这样的工作

bash: fg: current: no such job

有人可以在这里帮助我吗?我可以关机吗?以后继续同步:?

Can anybody help me out here? Can i just shut down & continue the sync later using:?

回购同步

推荐答案

您不能真正暂停 repo sync ,但是如果您使用Ctrl-C中止它然后再运行一次,它将有效地从停下来的地方开始.尽管它将重新从头开始处理项目列表,并且可能仍会为已经处理过的项目获取一些新数据,但是它应该在这些项目中反复进行,因为以前获取的所有数据仍然会存在在隐藏的 .repo 目录中.

You can't really pause a repo sync, but if you abort it using Ctrl-C and then run it again later, it will effectively pick up where it left off. Although it will start working through the project list from the beginning again, and may still fetch some new data for projects that have already been processed, it should whizz through these projects, because all of the data that it had previously fetched will still be there in the hidden .repo directory.

请参阅此答案,以详细说明回购初始化回购同步工作.

See this answer for an excellent description of the way that repo init and repo sync work.

请注意,您不会立即看到任何已提取的项目,因为 repo sync 不会创建并填充您的工作目录,直到它完成了在其中的所有git存储库的克隆. .repo/projects .

Note that you won't immediately see any of the projects that have been fetched, because repo sync doesn't create and populate your working directories until it has finished cloning all of the git repositories in .repo/projects.

这篇关于暂停与播放恢复Android Repo Sync的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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