Pausing & Resume Android Repo Sync

巧了我就是萌 提交于 2019-12-03 14:37:46
Paul

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.

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.

If you want to repo sync without hanging up, you can use:

nohup repo sync &

and exit the ssh/telnet/terminal session.

For the disk space increasing issue, just do the following periodically:

cd /path/to/repo
rm -f `find . -name '*tmp_pack*'`
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!