mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-09 08:51:54 -04:00
archiver: accept version 4 repos for -r/--repo, refs #8572
_common.py had a hard-coded version check that only allowed v3. Now that repository.py creates v4 repos, every archiver command failed to open the repo. Extend the guard to (3, 4). The --other-repo check (v1 or v3 for borg transfer source) is intentionally left unchanged.
This commit is contained in:
parent
707f26b8e3
commit
395939b551
1 changed files with 2 additions and 2 deletions
|
|
@ -127,9 +127,9 @@ def with_repository(
|
|||
)
|
||||
|
||||
with repository:
|
||||
if repository.version not in (3,):
|
||||
if repository.version not in (3, 4):
|
||||
raise Error(
|
||||
f"This borg version only accepts version 3 repos for -r/--repo, "
|
||||
f"This borg version only accepts version 3 or 4 repos for -r/--repo, "
|
||||
f"but not version {repository.version}. "
|
||||
f"You can use 'borg transfer' to copy archives from old to new repos."
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue