1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-07 23:18:43 +00:00

key export: move examples to docs

This commit is contained in:
Thomas Waldmann 2024-07-19 19:44:38 +02:00
parent 4312a74c33
commit 6211a3dc79
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
2 changed files with 12 additions and 12 deletions

View file

@ -45,4 +45,16 @@ Fully automated using environment variables:
.. include:: key_export.rst.inc
Examples
~~~~~~~~
::
borg key export > encrypted-key-backup
borg key export --paper > encrypted-key-backup.txt
borg key export --qr-html > encrypted-key-backup.html
# Or pass the output file as an argument instead of redirecting stdout:
borg key export encrypted-key-backup
borg key export --paper encrypted-key-backup.txt
borg key export --qr-html encrypted-key-backup.html
.. include:: key_import.rst.inc

View file

@ -160,18 +160,6 @@ def build_parser_keys(self, subparsers, common_parser, mid_common_parser):
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(