Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resume repo sync

Can anyone please mention how to resume the sync command?

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

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:

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

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.

like image 885
webgenius Avatar asked May 30 '10 03:05

webgenius


1 Answers

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:

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.

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.

like image 146
zed_0xff Avatar answered Nov 09 '22 10:11

zed_0xff