-
- Veeam Vanguard
- Posts: 629
- Liked: 251 times
- Joined: Sep 27, 2011 12:17 pm
- Full Name: Craig Dalrymple
- Location: Scotland
- Contact:
Pre-Freeze scripts
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' ?
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Pre-Freeze scripts
Yes, currently pre-job script is assumed to return 0 on success and non-zero value on failure.
Thank you.
Thank you.
-
- Veteran
- Posts: 635
- Liked: 174 times
- Joined: Jun 18, 2012 8:58 pm
- Full Name: Alan Bolte
- Contact:
Re: Pre-Freeze scripts
If you're uncertain that's actually occurring, you could try forcing a batch script to fail by adding the line:
exit /b 1
exit /b 1
-
- Veeam Vanguard
- Posts: 629
- Liked: 251 times
- Joined: Sep 27, 2011 12:17 pm
- Full Name: Craig Dalrymple
- Location: Scotland
- Contact:
Re: Pre-Freeze scripts
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.
I'll pass the script back to the DBA to verify, as the local SQL backup files don't appear as expected.
Who is online
Users browsing this forum: No registered users and 93 guests