# GPG Keyring Restore Instructions ## Decrypting and Restoring GPG Keys To restore from backup: `gpg_keyring_TIMESTAMP.tar.gz.gpg` ### Step 1: Decrypt the backup ```bash gpg --decrypt gpg_keyring_TIMESTAMP.tar.gz.gpg > gpg_keyring_TIMESTAMP.tar.gz ``` ### Step 2: Extract to home directory ```bash tar -xzf gpg_keyring_TIMESTAMP.tar.gz -C ~/ ``` ### Step 3: Set correct permissions ```bash chmod 700 ~/.gnupg chmod 600 ~/.gnupg/* chmod 700 ~/.gnupg/private-keys-v1.d chmod 600 ~/.gnupg/private-keys-v1.d/* ``` ### Step 4: Restart GPG agent ```bash gpgconf --kill gpg-agent gpg --list-secret-keys # This will restart the agent ``` ## Security Notes - Contains your GPG private keys - highly sensitive - Keep encrypted backup in secure location - Test restore process periodically ## What's Included - Private keys (private-keys-v1.d/) - Public keyring (pubring.kbx) - Trust database (trustdb.gpg) - GPG configuration files Created: $(date) System: $(sw_vers -productVersion)