Skip to content

key export --paper: fix restore hint for borg 2 syntax, fixes #10428 - #10431

Merged
ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:key-paper-hint-10428
Sep 25, 2026
Merged

ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:key-paper-hint-10428

Conversation

@ThomasWaldmann

Copy link
Copy Markdown
Member

The borg key export --paper header told users to run borg key import --paper /path/to/repo, which is borg 1.x syntax. In borg 2, the positional argument of borg key import is the key backup path, and --paper rejects it.

The hint now says borg key import --paper. Like most of the docs, it assumes BORG_REPO is set. The expected output in key_cmds_test.py is updated to match.

Fixes #10428.

🤖 Generated with Claude Code

…kup#10428

In borg 2, the positional argument of borg key import is the key backup
path, not the repository. Like most of the docs, assume BORG_REPO is set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.50%. Comparing base (dd902f8) to head (10394b0).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10431      +/-   ##
==========================================
- Coverage   88.53%   88.50%   -0.04%     
==========================================
  Files         103      103              
  Lines       19148    19148              
  Branches     2978     2978              
==========================================
- Hits        16952    16946       -6     
- Misses       1532     1537       +5     
- Partials      664      665       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@ThomasWaldmann
ThomasWaldmann merged commit 5f1d3cd into borgbackup:master Sep 25, 2026
23 of 25 checks passed
@ThomasWaldmann
ThomasWaldmann deleted the key-paper-hint-10428 branch September 25, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

key export --paper: restore hint uses borg 1.x syntax

1 participant