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:
parent
4312a74c33
commit
6211a3dc79
2 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue