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