repomanager icon indicating copy to clipboard operation
repomanager copied to clipboard

Allow repository export for isolated devices / networks

Open Cloud-Kid opened this issue 1 year ago • 3 comments

Hi,

Following our discussion on Discord, is there any possibility to maybe add a way to replicate a repomanager instance in a click ?

There are maybe several options available :

  1. As you mentioned it, it's currently already possible to clone an instance of repomanager (Instance A) by copying every individual repos on a second instance (Instance B) using repos URL

N.B. In my case for example I have to deal with isolated networks so that's not currently possible

  1. It may be possible to add a button to export every repos on one instance in one click (In like a giant repo archive that can be downloaded localy) on instance A and then add a button to import an instance on instance B

  2. Other ideas ? If anyone is interested ?

Cloud-Kid avatar Nov 15 '24 13:11 Cloud-Kid

Maybe can be done in multiple parts :

  1. First add button to import and export in settings (Only for repomanager settings / repomanager-data folder) with the logic
  2. Add a global repo import and export button (Repomanager-repo folder)
  3. Add a per repo snapshot selection (Using the in place selection) for more granular selection for export / import

Cloud-Kid avatar Apr 15 '25 08:04 Cloud-Kid

From my point of view, it's a bad idea. Exporting a few MB to an archive is not a problem, but when it comes to several GB of data, it can turn into a real nightmare.

Just imagine debian > bookworm > main repository which is currently around ~100GB. This would require a lot of disk space, significant CPU consumption, a lot of time during which the Repomanager instance must not be used to avoid losing data during the archiving process, etc.

If the two environments could communicate with each other, it would be much more efficient, and we could even consider real-time replication via websocket.

lbr38 avatar Apr 15 '25 11:04 lbr38

I guess you are right, I'll keep the issue open for me to think about another way to do this or other ideas about this subject. I know this is not useful for a lot of people but I'm sure it will matter a lot for some. And as I said in the situation I'm facing it's not possible at all to make the two environment communicate 🔗

Cloud-Kid avatar Apr 20 '25 14:04 Cloud-Kid