Comprehensive data protection for all workloads
Post Reply
Cragdoo
Veeam Vanguard
Posts: 628
Liked: 251 times
Joined: Sep 27, 2011 12:17 pm
Full Name: Craig Dalrymple
Location: Scotland
Contact:

Pre-Freeze scripts

Post by Cragdoo »

I am trying to run a custom pre-freeze script to perform a local SQL backup (don't ask, best way to describe it ...paranoid DBA) on the destination VM being backed up. I have set the script processing mode to "Require successful script execution' and the script does appear to run, as does the backup job. I was wondering if the job still requires the script to exit with error code '0' ?
PTide
Product Manager
Posts: 6408
Liked: 724 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Pre-Freeze scripts

Post by PTide »

Yes, currently pre-job script is assumed to return 0 on success and non-zero value on failure.

Thank you.
alanbolte
Veteran
Posts: 635
Liked: 174 times
Joined: Jun 18, 2012 8:58 pm
Full Name: Alan Bolte
Contact:

Re: Pre-Freeze scripts

Post by alanbolte »

If you're uncertain that's actually occurring, you could try forcing a batch script to fail by adding the line:

exit /b 1
Cragdoo
Veeam Vanguard
Posts: 628
Liked: 251 times
Joined: Sep 27, 2011 12:17 pm
Full Name: Craig Dalrymple
Location: Scotland
Contact:

Re: Pre-Freeze scripts

Post by Cragdoo »

so using the exit /b 1 does make the job fail thanks.

I'll pass the script back to the DBA to verify, as the local SQL backup files don't appear as expected.
Post Reply

Who is online

Users browsing this forum: dbeerts and 142 guests