GNU Privacy Guard: Difference between revisions
From Leo's Notes
This page was last edited on 25 June 2013, at 07:01.
Created page with "GnuPG, also known as <code>gpg</code> is a program that lets you encrypt/decrypt data. == Automating Encrypted Backups using Asymmetric Keys == # Get the public key to encr..." |
No edit summary |
||
| Line 1: | Line 1: | ||
GnuPG, also known as <code>gpg</code> is a program that lets you encrypt/decrypt data. | GnuPG, also known as <code>gpg</code> is a program that lets you encrypt/decrypt data. | ||
== Exporting Public Key == | |||
gpg --armor --export leo@steamr.com --output leo.steamr.pub | |||
== Automating Encrypted Backups using Asymmetric Keys == | == Automating Encrypted Backups using Asymmetric Keys == | ||
Revision as of 07:01, 25 June 2013
GnuPG, also known as gpg is a program that lets you encrypt/decrypt data.
Exporting Public Key
gpg --armor --export leo@steamr.com --output leo.steamr.pub
Automating Encrypted Backups using Asymmetric Keys
# Get the public key to encrypt with wget -O - http://leo.home.steamr.com/public/backup_key.pub | gpg --import # generate the backup tar -czp \ /etc/fstab \ /etc/passwd \ /etc/group \ /etc/shadow \ | gpg --encrypt --yes --no-tty --trust-model always --output backup-system.tar.gz.gpg --recipient leo@steamr.com # delete the public backup key gpg --batch --yes --delete-key leo@steamr.com