-
-
Save OhYee/8e875adcb865b8e7b7bc61eca2c591a4 to your computer and use it in GitHub Desktop.
GPG backup and restore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gpg --armor --export > pgp-public-keys.asc | |
gpg --armor --export-secret-keys > pgp-private-keys.asc | |
gpg --export-ownertrust > pgp-ownertrust.asc | |
OhYee% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gpg --import pgp-public-keys.asc | |
gpg --import pgp-private-keys.asc | |
gpg --import-ownertrust pgp-ownertrust.asc | |
OhYee% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment