Comprehensive data protection for all workloads
Post Reply
staun
Enthusiast
Posts: 58
Liked: 5 times
Joined: Jun 30, 2017 8:48 am
Full Name: Jørgen Staun
Contact:

Script to check database in surebackup and return result

Post by staun »

I am trying to write a script that select data from a specific database during a Surebackup job. The script works fine, but I would like to return the result back to the job window log or mail being send. It seems that I can only get the job to succeed if the scripts EXIT Code is "Success" - anything else will result in a failed job.

Hope you understand what I need to accomplish.
foggy
Veeam Software
Posts: 21139
Liked: 2141 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Script to check database in surebackup and return result

Post by foggy »

Hi Jørgen, yes, I believe I'm getting your need right, but let's consider it as a feature request, since you cannot do this in the current version.
staun
Enthusiast
Posts: 58
Liked: 5 times
Joined: Jun 30, 2017 8:48 am
Full Name: Jørgen Staun
Contact:

Re: Script to check database in surebackup and return result

Post by staun »

thank you for your reply - hope it will be available some day, it can save us some time (several hours every week) in restoring databases, make some select-statements to ensure the DB consistency.
tdewin
Veeam Software
Posts: 1818
Liked: 655 times
Joined: Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin
Contact:

Re: Script to check database in surebackup and return result

Post by tdewin »

FYI, you can not check the status in the GUI but if your scripts writes to the console, you can retrieve that in the logs. I believe the statements are tagged with [console] or something like this. Default log location is C:\ProgramData\Veeam\Backup\<job name>
Post Reply

Who is online

Users browsing this forum: No registered users and 80 guests