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

carl0s

Well-Known Member
Jul 19, 2017
45
20
48
44
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
 
  • Like
Reactions: carl0s
Ah, that is wonderful - perfect and so simple. Thanks very much. I will try it out this weekend.