i testing the restore to a new vps. i’m using local backup on vps.
I have setup the new vps.
upload all files of my old vps where located in backup/encrypted to the new vps /home/elliryc/back/vps
i don’t undertstand this section:
export PASSPHRASE=$(cat your_backup_secret_key_file.txt)
sudo -E duplicity restore --force file:///path/to/copied/files /home/user-data/
Thanks for your help.
Where did you upload the secret_key.txt file to? You need to replace
your_backup_secret_key_file.txt in that command with the actual location of the file on the server.
the second command will be:
sudo -E duplicity restore --force file:///home/elliryc/back/vps /home/user-data/
thanks for your reply.
here the output:
elliryc@vps:/home/user-data/backup$ export PASSPHRASE=$(cat secret_key.txt)
elliryc@vps:/home/user-data/backup$ sudo -E duplicity restore --force file:///home/elliryc/back/vps/ /home/user-data/
[sudo] password for elliryc:
Synchronizing remote metadata to local cache…
Copying duplicity-full-signatures.20231108T021710Z.sigtar.gpg to local cache.
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: directory ‘/home/elliryc/.gnupg’ created
gpg: keybox ‘/home/elliryc/.gnupg/pubring.kbx’ created
gpg: AES256.CFB encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
===== End GnuPG log =====
You have to copy over the
secret_key.txt file from the old server and place it somewhere outside of the
/home/user-data/ directory on the new server like you did with your backups. You are trying to use the
secret_key.txt file from the new server. That is not going to work.
And do not run these commands from within the
no i have copied the old secret_key.txt to the new vps.
That is not what your message says. Actually, if you copied the old
secret_key.txt file over to the new MiaB, you have overwritten the key, and potentially have destroyed the ability to create backups for yourself.
ok i found my error:
i haven’t copy the secret_key.txt but the content of the file to a new file named same.
the gpg checks failed for that.
This topic was automatically closed 40 days after the last reply. New replies are no longer allowed.