1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-22 06:01:54 +00:00

Doc: borg key export: add examples (#6227)

docs: borg key export: add examples

see: https://github.com/borgbackup/borg/issues/6204#issuecomment-1027150308
This commit is contained in:
Andrey Bienkowski 2022-02-04 17:37:33 +00:00 committed by GitHub
parent f96e443975
commit 9f311abd79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4131,6 +4131,18 @@ def define_borg_mount(parser):
repository in the config file. A backup is thus not strictly needed, repository in the config file. A backup is thus not strictly needed,
but guards against the repository becoming inaccessible if the file but guards against the repository becoming inaccessible if the file
is damaged for some reason. 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, subparser = key_parsers.add_parser('export', parents=[common_parser], add_help=False,
description=self.do_key_export.__doc__, description=self.do_key_export.__doc__,