restore a directory from vma.lzo backup

liska_

Member
Nov 19, 2013
115
3
18
Hi,
I had to restore some files from a backup but I was unable to find any completely working howto here or on the wiki, which is a pitty imo.

This is my working solution for a vm without LVM (howto for LVM http://alexeytorkhov.blogspot.cz/2009/09/mounting-raw-and-qcow2-vm-disk-images.html ) :
lzop -x backupname.lzo - extracts vma
vma extract filename.vma targetdir - extracts images in raw and conf file
losetup /dev/loop0 image.raw - mount image
kpartx -a /dev/loop0 - creates partitions, here it was necessary to run aptitude install kpartx
mount /dev/mapper/loop0p1 /mnt/image

Now you can move your files and then unmount everything again.

umount /mnt/image
kpartx -d /dev/loop
losetup -d /dev/loop0
 
right,
see also this old thread, if you need to do that outside of a proxmox node (which already has the tools):
forum.proxmox.com/threads/14226-VMA-archive-restore-outside-of-Proxmox?p=103447

Marco
 
  • Like
Reactions: chrone

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!