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

  • Thread starter Thread starter niervol
  • Start date Start date
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