Skip to main content
Solved

single windows file restore from command line


is it possible to extract a single file from the most recent backup of a hyperV VM from a commandline utility?   It tried “extract.exe” and it appears to only extract EVERYTHING and actually restores the vhdx file.  Which I would then have to mount the vhdx somehow and extract the file I need.

 

I’d like to run this from cmdline on a daily schedule.

 

Any help greatly appreciated.

Best answer by Chris.Childerhose

Jeff Jewson wrote:

ok.  Thanks.  Unrelated to that but working toward the same goal:

Can I copy specific “locked” windows files from a VM?  I tried building a veeam copy job, but since they’re quick books QBW files - they in use and locked.  How would I achieve a VSS copy of a few files instead of a “dumb” windows copy?

Thanks Chris.

 

I am unsure for QuickBooks as that is not a typical VSS related file like SQL or the like. You might need to have the app closed to back it up.

View original
Did this topic help you find an answer to your question?

7 comments

Chris.Childerhose
Forum|alt.badge.img+21

  • Author
  • New Here
  • 3 comments
  • August 7, 2023

There’s no example there of extracting a single file that’s nested inside the VM’s VHDX file.

You can extract all the VM files from a single VM, but not specific “windows” files inside that VM.


Chris.Childerhose
Forum|alt.badge.img+21

I think you need to extract the vhdx files then the files. I don't think the utility can extract single files.  Using the console is easier as you can restore just files.


damien commenge
Forum|alt.badge.img+5

Hello,

I don’t know why you need it but if you want it to test restore works, you can use surebackup.


  • Author
  • New Here
  • 3 comments
  • August 7, 2023

ok.  Thanks.  Unrelated to that but working toward the same goal:

Can I copy specific “locked” windows files from a VM?  I tried building a veeam copy job, but since they’re quick books QBW files - they in use and locked.  How would I achieve a VSS copy of a few files instead of a “dumb” windows copy?

Thanks Chris.

 


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8521 comments
  • Answer
  • August 7, 2023
Jeff Jewson wrote:

ok.  Thanks.  Unrelated to that but working toward the same goal:

Can I copy specific “locked” windows files from a VM?  I tried building a veeam copy job, but since they’re quick books QBW files - they in use and locked.  How would I achieve a VSS copy of a few files instead of a “dumb” windows copy?

Thanks Chris.

 

I am unsure for QuickBooks as that is not a typical VSS related file like SQL or the like. You might need to have the app closed to back it up.


  • Author
  • New Here
  • 3 comments
  • August 7, 2023

That’s kinda what I thought.  It’s locked for a very good reason and a VSS snap of it may be a bad state.


Comment