Skip to content

Instantly share code, notes, and snippets.

View alexisduque's full-sized avatar
🏠
Working from home

Alexis DUQUE alexisduque

🏠
Working from home
View GitHub Profile
@alexisduque
alexisduque / gpg-import-and-export-instructions.md
Last active February 5, 2017 09:06 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@alexisduque
alexisduque / Subfolder to git repo.md
Created May 15, 2016 09:34 — forked from korya/Subfolder to git repo.md
Convert subfolder into Git submodule