borgbackup / borg

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

Wishlist: support PAX and BORG `--tar-format` in borg 1.2.x #7146

Open callegar opened 1 year ago

callegar commented 1 year ago

Have you checked borgbackup docs, FAQ, and open Github issues?

Yes

Is this a BUG / ISSUE report or a QUESTION?

Feature request

System information. For client/server mode post info for both machines.

Your borg version (borg -V).

1.2.2

Operating system (distribution) and version.

Linux (Ubuntu 22.04, Manjaro, Armbian - debian)

Hardware / network configuration, and filesystems used.

Not relevant

How much data is handled by borg?

Not relevant

Full borg commandline that lead to the problem (leave away excludes and passwords)

Not relevant

Describe the problem you're observing.

Would like to condense here some discussion that happened in other issues/threads. Now that --tar-format has been merged in master with support for PAX and BORG formats (the last supporting lossless roundtrip), it would be great if a point release of borg 1.2.x could be made with these features.

Rationale:

ThomasWaldmann commented 1 year ago

Just wanted to add here why for the migration from borg 1.x to borg 2 we did not choose the tar format to copy archives from old to new repos:

So, overall it is a quite expensive processing for potentially a lot of data (N archives multiplied by archive size).

The BORG format is a rather low-level borg-version-dependent hack and will not be compatible from 1.x to 2.

callegar commented 1 year ago

Thanks for the clarification!

That export+import is a rather expensive operation was clear to me. For the point:

to import an archive, it needs to get decompressed (.tgz), untared, chunked, hashed, compressed, encrypted/authenticated, written. when the data is in the target repo, it will be deduplicated again. I expect/hope it should be able to pipe export and import (in some cases) saving the tar compression/decompression.

Last point is quite interesting:

The BORG format is a rather low-level borg-version-dependent hack and will not be compatible from 1.x to 2 If I understand correctly:

  • this seems to suggest that tar-format=borg will be available in 1.2.x, so that my wishlist is going to be fulfilled! Great, thanks in advance!
  • ... and that it will be available in borg2 too...

So I have a couple of questions:

ThomasWaldmann commented 1 year ago

Well, I didn't want to say that it will be backported, that 1.2 to 2.0 was rather hypothetically meant.

PAX would be compatible as far as it is developed yet, but that is not much: it just adds the better timestamps and the general possibility for more metadata (but that is not used yet, except for that pax-based BORG format).