Android full mirror download size

438 views
Skip to first unread message

Vincent Victor

unread,
Oct 19, 2018, 11:18:59 AM10/19/18
to Android Building
I am creating a local Android full mirror using commands mentioned on official Android website as follows:

mkdir -p /usr/local/aosp/mirror
cd /usr/local/aosp/mirror
repo init -u https://android.googlesource.com/mirror/manifest --mirror
repo sync

It already downloaded 173GB and still going on. Do we have any idea that how much will be the final size? Am I doing anything wrong here?

Glenn Kasten

unread,
Oct 19, 2018, 10:42:27 PM10/19/18
to Android Building
According to section Hardware Requirements of
only 100 gig is needed.  So either that doc is wrong,
or your download has gone wild.  Please post here if it finishes,
and if so what the actual size is. 

Vincent Victor

unread,
Oct 22, 2018, 10:17:11 AM10/22/18
to Android Building
Download was ongoing till 238 GB and then I killed it. Could not afford to keep it continue. One more thing, I was downloading in home folder instead of /usr/local/, could this be the problem?

Colin Cross

unread,
Oct 22, 2018, 2:37:22 PM10/22/18
to android-...@googlegroups.com
Mirrors are much bigger than a normal checkout, at least a few hundred GB.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Glenn Kasten

unread,
Oct 22, 2018, 3:15:04 PM10/22/18
to Android Building
Thanks, I'll let our doc team know so they can mention it.


On Monday, October 22, 2018 at 11:37:22 AM UTC-7, Colin Cross wrote:
Mirrors are much bigger than a normal checkout, at least a few hundred GB.

On Mon, Oct 22, 2018 at 7:17 AM Vincent Victor <vkvict...@gmail.com> wrote:
Download was ongoing till 238 GB and then I killed it. Could not afford to keep it continue. One more thing, I was downloading in home folder instead of /usr/local/, could this be the problem?

On Saturday, 20 October 2018 08:12:27 UTC+5:30, Glenn Kasten wrote:
According to section Hardware Requirements of
only 100 gig is needed.  So either that doc is wrong,
or your download has gone wild.  Please post here if it finishes,
and if so what the actual size is. 

On Friday, October 19, 2018 at 8:18:59 AM UTC-7, Vincent Victor wrote:
I am creating a local Android full mirror using commands mentioned on official Android website as follows:

mkdir -p /usr/local/aosp/mirror
cd /usr/local/aosp/mirror
repo init -u https://android.googlesource.com/mirror/manifest --mirror
repo sync

It already downloaded 173GB and still going on. Do we have any idea that how much will be the final size? Am I doing anything wrong here?

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-building@googlegroups.com

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscribe@googlegroups.com.

Jean-Baptiste Queru

unread,
Oct 22, 2018, 3:22:39 PM10/22/18
to android-...@googlegroups.com
I confirm.

Full AOSP mirrors contain all git repositories that have ever been used. That includes repositories that contain a lot of binaries, such as kernels for older devices, or older toolchains. As a result, full mirrors are much heavier to download than single versions.

JBQ

--

Jean-Baptiste M. "JBQ" Quéru
Distinguished Architect, Oath
Lead Mobile Architect
Architect, Mobile Platforms
Co-chair, Senior Tech Council
"Users Come First"



andrew_esh

unread,
Oct 22, 2018, 4:38:24 PM10/22/18
to Android Building
I maintain a full mirror on a volume that I recently had to upsize to 250G, and I just found out that that size is not enough. I'll have to upsize it again to finish my sync.

Vincent Victor

unread,
Oct 23, 2018, 1:10:09 PM10/23/18
to Android Building
Do we have any way using which only mirror for master branch could be maintained and used for syncing clients?

Colin Cross

unread,
Oct 23, 2018, 2:51:53 PM10/23/18
to android-...@googlegroups.com
Use repo init -u https://android.googlesource.com/platform/manifest -b master --mirror to only sync projects that are in the master manifest.

--

Vincent Victor

unread,
Oct 24, 2018, 10:49:50 AM10/24/18
to Android Building
Hi Colin, 

So instead of "mirror" in path "platform" needs to be used, right?

Further, what is use of "-b master" flag. Official website says, "To check out a branch other than "master", specify it with -b." This means "-b master" should not be required for master branch.

Please help me with these two confusions! Thanks!

Glenn Kasten

unread,
Oct 24, 2018, 1:28:06 PM10/24/18
to Android Building
Documentation has been updated, see the blue note:

It still does not give the exact requirement, but at least it now warns you that you need more.

Thanks again for reporting this!

andrew_esh

unread,
Oct 24, 2018, 2:14:36 PM10/24/18
to Android Building

I finished my update to android-9.0.0-r12. Here are the sizes:
Cleaned sandbox: 82686588
Full Mirror: 257690272

My mirror volume is up to 300G now. It might last until Q is out.
Reply all
Reply to author
Forward
0 new messages