How to restore PVE Host?

totalimpact

Renowned Member
Dec 12, 2010
133
19
83
I am backing up my pve host successfully, but I wanted to test a restore to another machine-

Code:
proxmox-backup-client restore host/pve1/2024-01-03T04:53:23Z pve-etc.pxar /etc/

I get this error, it's a brand new machine I just added the PBS storage to:
Code:
Error: error extracting archive - encountered unexpected error during extraction: error at entry ".pwd.lock": failed to extract file: failed to create file ".pwd.lock": EEXIST: File exists

I dont see any concise instructions in the wiki on how to fully backup a host and restore it, what is the procedure?
 
Last edited:
I already use that method, but a few people have said "just use PBS to backup the host", which it does backup, but it does not restore. So if there was a one stop option to always keep my data backed up on the PBS, including the host, with versioning, and quick disaster restore of everything like encryption keys, ssl certs, all the important host config, that would be ideal.

https://pbs.proxmox.com/docs/backup-client.html#creating-backups

I guess worst case I can restore to a tmp dir and move files over to their respective locations.
 
I already use that method, but a few people have said "just use PBS to backup the host", which it does backup, but it does not restore. So if there was a one stop option to always keep my data backed up on the PBS, including the host, with versioning, and quick disaster restore of everything like encryption keys, ssl certs, all the important host config, that would be ideal.

https://pbs.proxmox.com/docs/backup-client.html#creating-backups

I guess worst case I can restore to a tmp dir and move files over to their respective locations.
This would be great and the missing piece of the PBS puzzle for me.

I can only think it would require a PVE recovery environment tool, bootable by USB or such, that would boot into an environment that connects to, and understands the PBS backups. It could then pull the desired backup, and restore onto local storage. Then reboot into the restored host.
 
I can only think it would require a PVE recovery environment tool, bootable by USB or such, that would boot into an environment that connects to, and understands the PBS backups. It could then pull the desired backup, and restore onto local storage. Then reboot into the restored host.
Yes, thats how I do it here. You can make that yourself by installing Debian to a pen drive, then booting it and create your own script to backup/restore the PVE system disk to/from the PBS using the proxmox-backup-cient that can backup any file/folder or even block device. See for example here to get a general idea: https://forum.proxmox.com/threads/problem-backing-up-using-backup-client.129347/
 
  • Like
Reactions: takeokun

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!