I have to migrate to another box. Once again, I’m running into problems trying to restore my data. Below are my commands and the error. Please advise.
root@box: cd /home/user-data/backup/ root@box: ls encrypted secret_key.txt root@box: export PASSPHRASE=$(cat secret_key.txt) $ sudo -E duplicity restore --force file:/home/user-data/backup/encrypted /home/user-data/ Synchronizing remote metadata to local cache... Copying duplicity-full-signatures.20200619T105004Z.sigtar.gpg to local cache. GPGError: GPG Failed, see log below: ===== Begin GnuPG log ===== gpg: AES256 encrypted data gpg: gcry_kdf_derive failed: Invalid data gpg: encrypted with 1 passphrase gpg: decryption failed: No secret key ===== End GnuPG log ===== $
The secret key is extremely lengthy. I tried entering in just the first line as someone had suggested earlier and it did not work. Is there a way to shorten the key so as to enter a complete key…would that resolve this?