Created
August 16, 2018 21:55
-
-
Save jumbosushi/122bf751f50480757043cdfed4ac84c7 to your computer and use it in GitHub Desktop.
Copy gpg keys from backup
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
mv ~/.gnupg ~/.new_gnupg | |
cp -r /backup/.gnupg ~cd .gnupg/ | |
gpg --export-secret-keys > sec.gpg | |
rm -r ~/.gnupg | |
mv ~/.new_gnupg ~/.gnupg | |
gpg --import sec.gpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment