enkore / borgcube

Backup system built on Borg Backup
https://borgcube.readthedocs.org
European Union Public License 1.1
25 stars 2 forks source link

Restore concept #1

Open enkore opened 7 years ago

enkore commented 7 years ago

Kinda pointless to not have this.

I'm thinking -- restore via extract as a job. Basically runs "borg extract" with access to exactly one archive and without leaking our keys (as usual) on a client (or arbitrary host). Perhaps support short-lived SSH keys for this (deleted from the server after the job completes).

enkore commented 7 years ago

For interactive browsing a more efficient access than tape-like is needed, which is why I started to work on metadata indexing by storing offsets into msgpack streams in a trie (HAT). This should work reasonably well but requires a pass over the stream to generate the trie. Some tests have shown that these compress rather well, so it might not be an issue to generate these by default when syncing the server cache (bc.job.backup); but also on-demand in the interface.

This also somewhat depends on the whole repository arbiter idea (#14).