Skip to content

Instantly share code, notes, and snippets.

@jumbosushi
Created August 16, 2018 21:55
Show Gist options
  • Save jumbosushi/122bf751f50480757043cdfed4ac84c7 to your computer and use it in GitHub Desktop.
Save jumbosushi/122bf751f50480757043cdfed4ac84c7 to your computer and use it in GitHub Desktop.
Copy gpg keys from backup
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