Skip to content

Commit

Permalink
Merge pull request #6236 from hexagonrecursion/bp-key-export
Browse files Browse the repository at this point in the history
Backport: Doc: borg key export: add examples
  • Loading branch information
ThomasWaldmann committed Feb 4, 2022
2 parents b2d353f + 77ab224 commit 6880c69
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/borg/archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3223,6 +3223,18 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
repository in the config file. A backup is thus not strictly needed,
but guards against the repository becoming inaccessible if the file
is damaged for some reason.
Examples::
borg key export /path/to/repo > encrypted-key-backup
borg key export --paper /path/to/repo > encrypted-key-backup.txt
borg key export --qr-html /path/to/repo > encrypted-key-backup.html
# Or pass the output file as an argument instead of redirecting stdout:
borg key export /path/to/repo encrypted-key-backup
borg key export --paper /path/to/repo encrypted-key-backup.txt
borg key export --qr-html /path/to/repo encrypted-key-backup.html
""")
subparser = key_parsers.add_parser('export', parents=[common_parser], add_help=False,
description=self.do_key_export.__doc__,
Expand Down

0 comments on commit 6880c69

Please sign in to comment.