Open ThomasWaldmann opened 6 days ago
I would really appreciate the use of packs. Currently borg 2 is "incompatible" with most USB hard disks with SMR recording. I used a Toshiba 4TB external USB hard drive for borg2 testing and a borg check was done approx. 50% after 12 hours when i killed it (needed the USB port). The repository was only approx 1,3TB
I consider packs essential
An alternative would be key value stores that optimize content addressing
@dietmargoldbeck what you've seen are 33MB/s.
That's not too bad for an initial backup to an USB (SMR) HDD.
Initial backups always feel very slow just due to the amount of data and processing.
borg 1.x segment files
borg 1.x used:
object id --> (segment_name, offset_in_segment)
.borg2 status quo: objects stored separately
borg2 is much simpler:
borgstore
(k/v store with misc. backends)Pros:
Cons:
borg2 alternative idea
Pros:
Cons:
object_id -> pack_id, offset_in_pack
Side note: desired pack "size" could be given by amount of objects in the pack (N) or by the overall size of all objects in the pack (S). For the special case of N == 1 it would be a slightly different implementation (using a different file format) of what we currently have in borg2, not necessarily need that global index and also compact would still be very easy.