Extracting files from backup

droidus

Member
Apr 5, 2020
107
2
23
34
This is the command that I ran:
dd if=/dev/mapper/pve-vm--108--disk--0 of=/mnt/vm-108-disk-0.backup
How can I (if possible) extract these files in Linux?
 
VM dont use file systems that get somehow compressed in an archive. They use block devices. So if you want to access the data on a block device you need to mount the filesystems that is creataed ontop of it somewhere. How to mount it really depends on how the guest had partitioned/formated that block device.
 
Last edited:
you can use losetup or kpartx to expose the img file as block device again, and then proceed depending on which storage stack you used inside the VM. obviously there are some limitations (e.g., if you backed up a non-linux VM's disk, linux might not be able to access the data at all) and possible pitfalls (e.g., LVM and ZFS both don't like duplicate VG/pool names, so proceed with caution or do the restore in another VM ;))
 

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!