PowerShell script exchange
Post Reply
CharlesC
Novice
Posts: 8
Liked: 2 times
Joined: Feb 13, 2015 9:00 pm
Contact:

Restoring file while preserving older files

Post by CharlesC »

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.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Restoring file while preserving older files

Post by veremin »

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.?
CharlesC
Novice
Posts: 8
Liked: 2 times
Joined: Feb 13, 2015 9:00 pm
Contact:

Re: Restoring file while preserving older files

Post by CharlesC »

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.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Restoring file while preserving older files

Post by veremin »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests