Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
init-s
Influencer
Posts: 11
Liked: 1 time
Joined: Dec 09, 2014 11:42 am
Full Name: Andrea Cerrito
Contact:

How to stop the backup job if the prescript fail?

Post by init-s »

I'm trying to backup to two different USB disks and I've created a pre-job script to mount the disk.
In any error case during mount, my script can return any exit code I want.
I've tested with 1, 127, and others...

Veeam currently detect the failure but the job ran even with the error: how to stop the job in case of prescript fail?
Thanks
PTide
Product Manager
Posts: 6408
Liked: 724 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: How to stop the backup job if the prescript fail?

Post by PTide »

Hi,

Currently there is no option to do that out of the box, but you could try to handle the mount error inside the script so that in case of failure the script kills the job.

Thanks
archvector
Enthusiast
Posts: 33
Liked: 3 times
Joined: Mar 09, 2021 7:53 am
Contact:

Re: How to stop the backup job if the prescript fail?

Post by archvector »

Hi,

With VBR v11, is there an option to stop the veeam backup job if the prejobs fails (Return code different than 0) ?

Thanks,
Natalia Lupacheva
Veteran
Posts: 1143
Liked: 302 times
Joined: Apr 27, 2020 12:46 pm
Full Name: Natalia Lupacheva
Contact:

Re: How to stop the backup job if the prescript fail?

Post by Natalia Lupacheva »

Hello,

Currently, there is no way to do that with standard functionality.
But if you are looking for a workaround, Powershell or this solution might help you.

Thank you!
archvector
Enthusiast
Posts: 33
Liked: 3 times
Joined: Mar 09, 2021 7:53 am
Contact:

Re: How to stop the backup job if the prescript fail?

Post by archvector »

Thanks,
I will look at that workaround
Post Reply

Who is online

Users browsing this forum: cloggy and 11 guests