PowerShell script exchange
Post Reply
marius roma
Veteran
Posts: 459
Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:

Restoring a given file from a backup

Post by marius roma »

I need to create a script to restore a given file (let's say, "C:\work\myfile.txt") from all che VMs of a given job and to check if the restore is successful.
If the restore fails I need to detect the reason (file not found, unexisting backup, ...).
IOs there any sample I can start from?
Regards
Marius
nielsengelen
Product Manager
Posts: 5619
Liked: 1177 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Restoring a given file from a backup

Post by nielsengelen »

Are you looking at backup testing automated? Did you take a look at SureBackup which can do a full simulation of a restore and even do in guest testing like for example the MD5 checksum on files?

What you are looking for is possible however it may be easier to use SureBackup for your needs :-)
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
marius roma
Veteran
Posts: 459
Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:

Re: Restoring a given file from a backup

Post by marius roma »

I was told that SureBackup is not available with Standard edition, is it corect?
Regards
marius
nielsengelen
Product Manager
Posts: 5619
Liked: 1177 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Restoring a given file from a backup

Post by nielsengelen »

SureBackup is indeed not available with Standard Edition.

The cmdlet you are looking for is Start-VBRWindowsFileRestore (for Windows servers): https://helpcenter.veeam.com/backup/pow ... store.html

At the bottom is an example of a file being copied from C:\
With this you can start and enhance to your needs. If this fails you will see the reason.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests