|
@@ -1120,9 +1120,28 @@ class Archiver:
|
|
|
|
|
|
key_parsers = subparser.add_subparsers(title='required arguments', metavar='<command>')
|
|
|
|
|
|
+ key_export_epilog = textwrap.dedent("""
|
|
|
+ If repository encryption is used, the repository is inaccessible
|
|
|
+ without the key. This command allows to backup this essential key.
|
|
|
+
|
|
|
+ There are two backup formats. The normal backup format is suitable for
|
|
|
+ digital storage as a file. The ``--paper`` backup format is optimized
|
|
|
+ for printing and typing in while importing, with per line checks to
|
|
|
+ reduce problems with manual input.
|
|
|
+
|
|
|
+ For repositories using keyfile encryption the key is saved locally
|
|
|
+ on the system that is capable of doing backups. To guard against loss
|
|
|
+ of this key, the key needs to be backed up independently of the main
|
|
|
+ data backup.
|
|
|
+
|
|
|
+ For repositories using the repokey encryption the key is saved in the
|
|
|
+ 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.
|
|
|
+ """)
|
|
|
subparser = key_parsers.add_parser('export', parents=[common_parser],
|
|
|
description=self.do_key_export.__doc__,
|
|
|
- epilog="",
|
|
|
+ epilog=key_export_epilog,
|
|
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
|
help='export repository key for backup')
|
|
|
subparser.set_defaults(func=self.do_key_export)
|
|
@@ -1134,9 +1153,17 @@ class Archiver:
|
|
|
default=False,
|
|
|
help='Create an export suitable for printing and later type-in')
|
|
|
|
|
|
+ key_import_epilog = textwrap.dedent("""
|
|
|
+ This command allows to restore a key previously backed up with the
|
|
|
+ export command.
|
|
|
+
|
|
|
+ If the ``--paper`` option is given, the import will be an interactive
|
|
|
+ process in which each line is checked for plausibility before
|
|
|
+ proceeding to the next line. For this format PATH must not be given.
|
|
|
+ """)
|
|
|
subparser = key_parsers.add_parser('import', parents=[common_parser],
|
|
|
description=self.do_key_import.__doc__,
|
|
|
- epilog="",
|
|
|
+ epilog=key_import_epilog,
|
|
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
|
help='import repository key from backup')
|
|
|
subparser.set_defaults(func=self.do_key_import)
|