I have read this article about how to mirror a p2 update site to local, but how can I mirror a p2 update site (eg. https://download.eclipse.org/releases/2022-06 ) to one of my remote p2 update sites ?
By the way, are there any files required as a p2 update site? I noticed that the contents of the mirror-to local repository were missing some files, such as p2.index, compared to the mirror-from remote p2 update site.
It does not matter whether your p2 update site is locally (accessed via
file://...) or remotely (http://...orhttps://...). It's a folder structure that can be moved. So you can upload the directory of your to local mirrored p2 update site and vice versa.A p2 repository must contain an
artifacts.xmlfile and acontent.xmlfile that might also be provided compressed as.jarand/or even more compressed as.xml.xz(assuming it's an artifact and a metadata repository in one and not separated, which is also possible). Thep2.indexfile existing only for performance reasons. The best performance you will get with ap2.indexplus anartifacts.xml.xzand acontent.xml.xzfile and for backward compatibility, anartifacts.jarfile and acontent.jarfile in addition.See Eclipse Wiki: What is the p2.index file? for more details.
You can also have a composite p2 repository.