From 953d4ec6afd1b42feb7465ee57e48d72f033019a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 23 Jan 2017 10:12:18 +0100 Subject: gpg: New export and import options "backup" and "restore". * g10/export.c (parse_export_options): Add "backup" and its alias "export-backup". (do_export_one_keyblock): Export ring trust packets in backup mode. * g10/import.c (parse_import_options): Add "restore" and its alias "import-restore". (read_block): Import ring trust packets. -- These options are intended to, well, backup and restore keys between GnuPG implementations. These options may eventually be enhanced to backup and restore all public key related information. Signed-off-by: Werner Koch --- doc/gpg.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'doc') diff --git a/doc/gpg.texi b/doc/gpg.texi index 044ba3761..8e1a5e6fc 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -2283,6 +2283,12 @@ opposite meaning. The options are: the most recent self-signature on each user ID. This option is the same as running the @option{--edit-key} command "minimize" after import. Defaults to no. + + @item restore + @itemx import-restore + Import in key restore mode. This imports all data which is usually + skipped during import; including all GnuPG specific data. All other + contradicting options are overridden. @end table @item --import-filter @code{@var{name}=@var{expr}} @@ -2393,6 +2399,13 @@ opposite meaning. The options are: @c when the exported subkey is to be used on an unattended machine where @c a passphrase doesn't necessarily make sense. Defaults to no. + @item backup + @itemx export-backup + Export for use as a backup. The exported data includes all data + which is needed to restore the key or keys later with GnuPG. The + format is basically the OpenPGP format but enhanced with GnuPG + specific data. All other contradicting options are overridden. + @item export-clean Compact (remove all signatures from) user IDs on the key being exported if the user IDs are not usable. Also, do not export any -- cgit v1.2.3