Which then asks me for a “GnuPG passphrase.” Did I set this up? I tried all the passwords I know and it isn’t working. Is there a way to find out this passphrase or (worst case) clear it so I can start a new backup file?
Synchronizing remote metadata to local cache...
GnuPG passphrase:
Copying duplicity-full-signatures.20160810T100002Z.sigtar.gpg to local cache.
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: AES256 encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: bad key
===== End GnuPG log =====
Thanks murgero, now that I know it was something I setup, how do I go about re-creating a new one and starting new backups based on the new passphrase I setup?
Understood, this was an exercise to see how the restore works. I tried manually typing in the passphrase from the secret_key file and it did not work at the prompt.
The GPG passphrase secret_key.txt are just different terms for the same thing afaik. It’s not something you would’ve setup; as long as you’re following the instructions and not modifying the default Box config, it will have been generated for you automatically during setup. Have you setup more than one Box in the past? It could be that the key you’re using is just for a different backup set.
Thanks Josh & sdlg, I think that is exactly what happened. I was on v18b I believe when I started and the old laptop I was running the server on would crash and freeze I assumed from the backup. I cleared out the backup folder and re-ran sudo mailinabox and now on v19. It auto rebuilt a new secret_key and I will run a backup tonight to make sure I can restore it then after.
Thanks for all the work you guys put into this project and support.
I deleted the “backup” folder in /home/user-data/ and re-ran the Mailinabox install/upgrade script. I followed the instructions and it made a new backup key. After the backup ran I was successfully able to use the restore feature of duplicity and it took the “secret_key.txt” file just fine.
Josh’s assumption: [quote=“JoshData, post:6, topic:1416, full:true”]
The error is probably just that the secret stored in secret_key.txt isn’t the one that was used to create the backup files.[/quote] was spot on.