Comprehensive data protection for all workloads
Post Reply
sbach
Lurker
Posts: 2
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: 31460
Liked: 6648 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: 6009
Liked: 2843 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
Lurker
Posts: 2
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: 220
Liked: 12 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: Semrush [Bot] and 115 guests