SPANIEL PEGASUS SHADOW
From: sidhu1f <firstname.lastname@example.org> Date: Mon, 14 Nov 2016 19:54:02 +0000 My thanks to Lars (and any other developers) for obnam, I find it quite useful. I have been taking encrypted backups of my laptop onto a server using obnam. The laptop hard disk has now died. So now, even though I have the public/private key used for backup, I'm having a problem restoring the encrypted backup. I'm trying to locally mount the encrypted repo (using obnam mount) in an account on the server. The account login name is the same as the account on laptop used to create the backup. In this account on server I have transferred public/private keys from laptop account (which I luckily could before the disk conked out completely). I have even renamed the server hostname to be the same as laptop hostname. I believe I have also correctly configured gpg-agent. Now when I run 'obnam mount' (with appropriate config file and other arguments) via the gpg-agent the passphrase prompt is displayed. If I enter the correct passphrase, I get the following error: ERROR: R0C79EX: gpg failed with exit code 2: gpg: decryption failed: No secret key That I'm entering the correct passphrase is confirmed by the fact that If I enter a wrong passpharse, the "*** Bad Passphrase (try 2 of 3) ***" message is displayed, and the passphrase prompt is displayed again. I have verified that both public and private keys are available by using the backup key to encrypt and then decrypt a text file. In conclusion, my query is, why the error message (from gpg? or obnam?) even when the passphrase is correct and how to resolve it? Also is there any alternate method to restore an encrypted backup onto to a machine other than the one which was backed up? Regards sidhu1f _______________________________________________ obnam-support mailing list email@example.com http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: Lars Wirzenius <firstname.lastname@example.org> Date: Tue, 15 Nov 2016 15:07:24 +0200 On Mon, Nov 14, 2016 at 07:54:02PM +0000, sidhu1f wrote: > In conclusion, my query is, why the error message (from gpg? or > obnam?) even when the passphrase is correct and how to resolve it? The error message comes from gpg, not obnam. I have no idea what causes it for you, I'm afraid. Are you sure the private is listed if you fun "gpg -K" (not gpg2)? > Also is there any alternate method to restore an encrypted backup onto > to a machine other than the one which was backed up? Set --client-name to the name of the other machine, and make the private key available, and it should work.