Created
October 13, 2023 08:41
-
-
Save ps1dr3x/681887b2f6c64710c787bb5fac09e2cb to your computer and use it in GitHub Desktop.
GPG full backup and re-import
This file contains 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 private-keys-backup.asc | |
gpg --import public-keys-backup.asc | |
gpg --import-ownertrust ownertrust-backup.txt |
This file contains 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 --export-secret-keys > private-keys-backup.asc | |
gpg --export > public-keys-backup.asc | |
gpg --export-ownertrust > ownertrust-backup.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment