Restoring file while preserving older files

PowerShell script exchange

Restoring file while preserving older files

Veeam Logoby CharlesC » Wed Feb 25, 2015 7:31 pm

Good afternoon,

running veeam8 B&R patch 1, i'd like to know if there are any powershell commands which will allow us to restore files from a vbk while retaining older files already restored from a previous VBK.
CharlesC
Novice
 
Posts: 8
Liked: 2 times
Joined: Fri Feb 13, 2015 9:00 pm

Re: Restoring file while preserving older files

Veeam Logoby v.Eremin » Thu Feb 26, 2015 10:35 am

Can you elaborate on what particular files you're willing to restore? Windows files, Other OS ones, or maybe even VM files, like .vmx, .vmdk, etc.?
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 974 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Restoring file while preserving older files

Veeam Logoby CharlesC » Thu Feb 26, 2015 2:13 pm

thanks Eremin, i'd like to restore files from a VM.
File-level restore. it doesnt seem like veeam has any options similar to backup exec where i can choose to replace an old file, or keep it if the file is newer.
CharlesC
Novice
 
Posts: 8
Liked: 2 times
Joined: Fri Feb 13, 2015 9:00 pm

Re: Restoring file while preserving older files

Veeam Logoby v.Eremin » Thu Feb 26, 2015 2:33 pm

To restore a file you should use one of the approaches described in the adjacent thread. As to preserving old files, you should use combination of Test-Path and Copy-Item commandlets. Test-Path will tell you whether or not the given file already exists and in case of positive answer Copy-Item will rename a restored item via "-Destination" parameter. Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 974 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 4 guests