restore with proxmox-backup-debug, pipe to qmrestore - stdin?

carl0s

Active Member
Jul 19, 2017
11
2
43
43
I am testing out various recovery scenarios.
One that I am testing, is to restore a disk image from a remote object storage (BackBlaze) which is mounted through kopia.
After I get proxmox-backup-debug on to a pve host, I can successfully run the command:
~/proxmox-backup-debug recover index drive-scsi0.img.fidx ../../../.chunks --output-path -
However, I can't find a way of putting that straight into a disk image (zfs or lvm-thin), and I do not have enough disk space on the pve-local file system.
I tried:
~/proxmox-backup-debug recover index drive-scsi0.img.fidx ../../../.chunks --output-path - | qmrestore - <new-vmid> --storage blah
but this failed, and I think it failed because qmrestore expects compressed vzdump which is not what I have.
From what I can see, the other commands do not work with stdin.
Any ideas how I can do this?
 
Hi,
if your target image is raw, you should be able to pipe it through dd, for example
Code:
root@pve8a1 ~ # pvesm alloc zfs 100 vm-100-disk-7 1G
successfully created 'zfs:vm-100-disk-7'
root@pve8a1 ~ # <command that dumps the data> | dd of=/dev/zvol/zfs/vm-100-disk-7 bs=1M
 

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!