pbs-client Restore Image

mrdmadev

Member
Oct 15, 2020
16
1
8
Hello,

I was able to boot a Debian Live image and do a complete image backup of the NVME drive on the host using:

proxmox-backup-client backup nvme.img:/dev/nvme0n1

I tried restoring that image using:

proxmox-backup-client restore host/MSIPrestige14/2022-05-24T14:43:13Z nvme.img.fidx /dev/nvme0n1 --repository 192.168.2.6:MSIPrestige14

I received the following error:

Error: unable to create target file "/dev/nvme0n1" - File exists (os error 17)

Will someone please give me a hint as to what I am doing incorrectly?

Thank you!
 
Error: unable to create target file "/dev/nvme0n1" - File exists (os error 17)
Hello,

while I am absolutely not sure if this a "normal" use case: man proxmox-backup-client tells me:
Code:
       proxmox-backup-client restore <snapshot> <archive-name> <target> [OPTIONS]
       Restore backup repository.
...
       Optional parameters:
       --allow-existing-dirs <boolean>
              Do not fail if directories already exists.
...

If you're brave you might try that. Good luck :-)
 
alternatively use '-' as target (it'll print the content to stdout), and pipe it where you want
 
alternatively use '-' as target (it'll print the content to stdout), and pipe it where you want
Is that a dash? If so, are you suggesting:

proxmox-backup-client restore host/MSIPrestige14/2022-05-24T14:43:13Z nvme.img.fidx - --repository 192.168.2.6:MSIPrestige14 | /dev/nvme0n1 ?
 
Hello,

while I am absolutely not sure if this a "normal" use case: man proxmox-backup-client tells me:
Code:
       proxmox-backup-client restore <snapshot> <archive-name> <target> [OPTIONS]
       Restore backup repository.
...
       Optional parameters:
       --allow-existing-dirs <boolean>
              Do not fail if directories already exists.
...

If you're brave you might try that. Good luck :)
I'm having a hard time believing that what I am trying to do hasn't been tried yet. That's not comfortable at all.
 
Is that a dash? If so, are you suggesting:
yes, a dash, but the command is not completely correct, more like

Code:
proxmox-backup-client restore host/MSIPrestige14/2022-05-24T14:43:13Z nvme.img.fidx - --repository 192.168.2.6:MSIPrestige14 > /dev/nvme0n1
 

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!