quick-docs/modules/ROOT/partialsdelete/2delete-proc_backup-gpg-keys-cli.adoc

13 lines
359 B
Text
Raw Normal View History

2018-03-02 15:34:56 +00:00
[[backup-gpg-keys-cli]]
= Making a Key Backup Using the Command Line
2021-02-09 09:27:15 +00:00
Use the following command to make the backup, which you can then copy to a destination of your choice:
2018-03-02 15:34:56 +00:00
----
2021-02-09 09:27:15 +00:00
gpg --export-secret-keys --armor johndoe@example.com > johndoe-privkey.asc
2018-03-02 15:34:56 +00:00
----
Store the copy in a secure place, such as a locked container.
2021-02-09 09:27:15 +00:00
Now see <<exporting-gpg-keys-cli>>.