borgbackup / borg

Deduplicating archiver with compression and authenticated encryption.
https://www.borgbackup.org/
Other
11.27k stars 747 forks source link

to pack or not to pack ... #8572

Open ThomasWaldmann opened 6 days ago

ThomasWaldmann commented 6 days ago

borg 1.x segment files

borg 1.x used:

borg2 status quo: objects stored separately

borg2 is much simpler:

Pros:

Cons:

borg2 alternative idea

Pros:

Cons:

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.

dietmargoldbeck commented 1 day 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

RonnyPfannschmidt commented 1 day ago

I consider packs essential

An alternative would be key value stores that optimize content addressing

ThomasWaldmann commented 1 day ago

@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.