extracting just *vm*.conf from .tar.lzo backup

N

niervol

Guest
Hi guys,

I need to restore just the vm.conf file from .tar.lzo file. When I decompress the whole file .conf file is stored in /etc/vzdump

I need a way to extract just the .conf file (or even just the /var directory) instead of extracting whole backup file (big --> long).

I have several ofthose to extract, that's why it is so important to me.

I'm using lzop -x vzdum-file.tar.lzo to extract it. But it takes ages for bigger backups while I only need one small file.

Thanks for all your help.

This is urgent
 
OK thanks

But how to extract just that from .tar.lzo file?

I'm mostly interessted in openvz as I have to recover .conf files for over 30 machines (and just one qemu machine).
 
The openvz vzdump archives does not contain the config as first file, so you need to scan the whole archive.
 
I use this for container backups, works great!

Code:
 $ lzop -d < vzdump-openvz-101-2013_01_01-00_00_00.tar.lzo | tar -xvf - ./etc/vzdump/vps.conf
 
  • Like
Reactions: mateja3144

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!