hello dear linux-experts,
pretty new to linux - but i want to upgrad from Suselinux 12.3 to 13.1
now i have to backup lots of things.
eg. the keys:
btw. as the KGpg was up and running - i started to export the keys.
*note: *i only can epxort the *_public_keys_* - is this okay!?
there are various ways to export/import (backup/restore) the keys.
we do a backup of all those public and secret keyrings and of course also of the so called 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...
gpg --export-ownertrust > chrisroos-ownertrust-gpg.txt
Restore the public and secret keyrings and trust database
cp /path/to/backups/*.gpg ~/.gnupg/
# or, if you exported the ownertrust
gpg --import-ownertrust chrisroos-ownertrust-gpg.txt
the next way
This only really works if we are sure that we do not loose any other keys
We can export the whole public and secret key and ownertrust. Many many ppl like this way:
gpg -a --export mymail.dot.com > chrisroos-public-gpg.key
gpg -a --export-secret-keys mymail.dot.com > chrisroos-secret-gpg.key
gpg --export-ownertrust > mybloddyname-ownertrust-gpg.txt
Friends told me to forget kgpg and just backup the entire "~.gnupg/" directory.
How To do that!? With terminal!?