Hi,Hello everyone
To restore a specific disk from a backup, is it correct to use the pbs-restore command directly?
proxmox-backup-client restore <snapshot> <archive-name> <target>
proxmox-backup-client list
Hi,
you can directly restore a disk by runningsnapshot will be the name of the snapshot, archive-name the name of the disk as provided byCode:proxmox-backup-client restore <snapshot> <archive-name> <target>
and target the destination you want the data to write to.Code:proxmox-backup-client list
An option would be to map the disk usingproxmox-backup-client map <snapshot> <volume>
and useqemu-img convert -f raw <loopdevice> -O qcow2 <filename>.qcow2
pbs-restore <snapshot> <volume> <filename>.qcow2 --verbose --format qcow2 --skip-zero
pbs-restore
can restore to qcow2 :export PBS_REPOSITORY=root@pam@the.ip.of.PBS:name-of-the-pbs-datastore
export PBS_FINGERPRINT=af:in:ge:rp:ri:nt
export PBS_PASSWORD=mypass
proxmox-backup-client snapshot list vm/202
echo set vmid
vm=202
echo set wanted snapshot
snapshot=vm/202/2025-04-27T02:16:01Z
echo set disk to restore :
drive=drive-scsi0.img
echo Create QCOW2 to restore to , don't forget to set same size as original :
qemu-img create -f qcow2 /mnt/tmp/$drive.qcow2 256G
echo .fidx suffix required to source disk
time pbs-restore $snapshot $drive.fidx /mnt/tmp/$drive.qcow2 --verbose --format qcow2 --skip-zero
We use essential cookies to make this site work, and optional cookies to enhance your experience.