threefoldtech / 0-hub

Threefold Images Hub
https://hub.grid.tf
Apache License 2.0
1 stars 1 forks source link

tools: cleanup backend zdb #55

Open maxux opened 2 years ago

maxux commented 2 years ago

In order to clean up zdb (all chunks are there forever), some tools will be needed.

The only way to know which chunks can be removed is by iterating over all available flist, keep a list of chunks and copy theses keys to a new namespace. Then replace old namespace with the new namespace.

We assume chunks not hosted by the hub can be discarded.