borgbackup / borg

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

missing env vars for "other repo" situations (borg repo-create|transfer) #8457

Open SpiritInAShell opened 1 month ago

SpiritInAShell commented 1 month ago

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

Yes

Is this a BUG / ISSUE report or a QUESTION?

Suggestion

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

Your borg version (borg -V).

known to be true for borg 2 beta 10 up to 12

Will be more relevant when borg2 is final/stable and borg1 repos will be converted to borg2.

Describe the problem you're observing.

When using related repos (borg repo-create --other-repo= and borg transfer --other-repo=) there may be issues due to overlapping repository access configuration.

Easiest example:

But there are other conflicting settings (by variable and by commandline like:

There may be other variables/options which conflict with each other, where there may or may not be a workaround. (I just stumbled upon these.)

I am guessing that these conflicting configuration parameters will become more evident to and reported by users, when productive repositories are more often transferred from borg1 to borg2.

But maybe this is only a weird and rare edge case that I experienced.

ThomasWaldmann commented 1 month ago

For the borg1 to borg2 transfer, the passphrase issue can be avoided by just using the same passphrase for the new repo. It can be changed after the transfer is completed.

But later I guess this has to be solved, because transfer might be used regularly to transfer archives between related borg2 repos.