PowerShell script exchange
Post Reply
matnaylor
Lurker
Posts: 2
Liked: never
Joined: Jul 22, 2019 11:22 am
Full Name: Matthew Naylor
Contact:

SQL Restore Error Handling

Post by matnaylor »

The Pworeshell documentation is a little light on detail around any validation or error handling that the veeam restore command do.
https://helpcenter.veeam.com/docs/backu ... ml?ver=100

In this case, I would be keep to see if anyone knows how veeam handles disk space validation when restoring a SQLusing restore-vesqldatabase
IE, will this do a disk space check before droping the database and restoring over it, or will it simply start the restore and then fail if it runs out of disk space ?

Im intrestitned to know if we should be adding our own logic in to check this, or if its something we should be able to relay on veeam to safely handle
HannesK
Product Manager
Posts: 14287
Liked: 2877 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: SQL Restore Error Handling

Post by HannesK »

Hello,
the text does not state, that it handles disk space check.

If you want to catch a "free disk space error", then you need to check upfront, yes.

Best regards,
Hannes
oleg.feoktistov
Veeam Software
Posts: 1912
Liked: 635 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: SQL Restore Error Handling

Post by oleg.feoktistov »

In fact, I don't recall any Copy/Restore/Migration-related cmdlets, which would check disk free space, folder quota etc.
and compare it against an amount of data being moved primarily to the main action.
That's what error handlers and separate validation patterns are for.
Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests