Pause and resume Android repo sync

I'm trying to sync next repo

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

The problem is that I started repo synchronization about 30 hours ago and it is still not completed. (I have a 1 Mbps connection). I do not want the laptop to be turned on for so long and want to pause the current synchronization and resume it later.

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

  • ctrl + C
  • ctrl + Z
  • just close the terminal (it will resume downloading the next time automatically)

So, I tried to use ctrl + c, loading stopped. And then, to resume, I tried "fg", but it does not start again. The error I get is:

bash: fg: current: no this job

Can anyone help me out here? Can I just turn off and continue syncing later using :?

resync

+7
source share
1 answer

You cannot pause a repo sync , but if you cancel it with Ctrl-C and then run it later, it will effectively close where it left off. Although he will start working with the list of projects again from the very beginning and can still get some new data for already processed projects, he should skip these projects because all the data that he previously downloaded will still be there in the hidden .repo directory.

See this answer for a great description of how repo init and repo sync .

Note that you will not immediately see any of the projects that were selected because repo sync does not create or populate working directories until it has completed the cloning of all git repositories in .repo/projects .

+22
source

All Articles