Difficulties restoring encrypted Backups in my test LAB

thoenny

Member
Aug 8, 2021
9
1
8
55
Hello,
I'm very happy with the Proxmox Products and began to play around with them. Especially the PBS is a fantastic Server! But only a tested backup is a good backup and I ran into some difficulties when restoring files from an encrypted Backup.
I created a master key as explained in the documentation and I am able to recover files on the PC I backed up. But when I try to catalog the backup on another host, I get of course a missing key error. Can someone give me a tip what the trick is. How do I use the master-key?

regards, thoenny
 
Okay, I read the documentation again and more carefully :)
First I have to extract the encrypted key from the backup, then decrypt it with the master-key and pass the decrypted key with --keyfile to the proxmox-backup-client, in detail:
Code:
proxmox-backup-client restore host/mint192/2021-08-31T08:14:29Z rsa-encrypted.key /recover/mint_encrypted.key
proxmox-backup-client key import-with-master-key /recover/mint_decrypted --master-keyfile /path/master-private.pem --encrypted-keyfile /recover/mint_encrypted.key
proxmox-backup-client catalog shell host/mint192/2021-08-31T08:14:29Z server.pxar --keyfile /recover/mint_decrypted.key

This worked and I'm happy, but now I don't understand the advantage of a masterkey. Isn' it easier just to save the key itself?
 
Isn' it easier just to save the key itself?
only if you just have a single encryption key

with a master key, each backup can be encrypted with a different key, but you still have a single masterkey with which you can decrypt them
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!