1

I started a backup via duplicity without giving it any options. I haven't created any GPG keys myself, so when I ran duplicity, it asked me for a passphrase, then created a key, and successfully backed-up (to BackBlaze B2) with encryption and compression.

Good, but I don't know where the key is stored. Thus if my drive dies then I won't be able to restore the backup. gpg -k gives no output. Where's the key hiding?

1 Answers1

0

If your (secret) key does exist then it is in the secret keyring of the user used to create the key. That user's keyrings are in a directory named '.gnupg' which is in that user's home directory.

So the secret key would be here for the user that created it:

~/.gnupg/secring.gpg

However, based on what you wrote, chances are duplicity just used a symmetric key which only consists of the passphrase you entered.

Reference : https://linux.die.net/man/1/gpg

Jack.L
  • 18