Comprehensive data protection for all workloads
Post Reply
sbach
Novice
Posts: 5
Liked: never
Joined: Jun 21, 2018 12:17 pm

Post Job script time out

Post by sbach »

I have a .bat that runs after backups run every night, what is the proper exit on this so Veeam doesn't annoy me with time out emails every morning? The script runs successfully so that isn't an issue. I have 'exit' as the last command in the .bat and it still times out.
Gostev
Chief Product Officer
Posts: 31814
Liked: 7302 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Post Job script time out

Post by Gostev » 1 person likes this post

It's exit code 0 for success:

Code: Select all

exit /b 0
tsightler
VP, Product Management
Posts: 6035
Liked: 2860 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Post Job script time out

Post by tsightler »

Is there any chance the script is taking longer than 15 minutes to run before it exits? If so, you'll need to increase the default timeout for pre/post-job scripts via a registry tweak.
sbach
Novice
Posts: 5
Liked: never
Joined: Jun 21, 2018 12:17 pm

Re: Post Job script time out

Post by sbach »

tsightler wrote:Is there any chance the script is taking longer than 15 minutes to run before it exits? If so, you'll need to increase the default timeout for pre/post-job scripts via a registry tweak.
Ah yes, just checked. Once a week it'll take a bit longer to run. Thanks.
Poweruser
Expert
Posts: 246
Liked: 15 times
Joined: Jul 25, 2018 4:12 pm
Full Name: Poweruser
Contact:

Re: Post Job script time out

Post by Poweruser » 1 person likes this post

for reference if someone wants to change the timeout look here:
https://forums.veeam.com/veeam-backup-r ... 24354.html
https://www.veeam.com/kb2182 (PostJobScriptTimeoutSec /

for vss/freeze see. https://www.veeam.com/kb1377
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Semrush [Bot] and 96 guests