How to stop the backup job if the prescript fail?

Backup agent for Linux servers and workstations on-premises or in the public cloud

How to stop the backup job if the prescript fail?

Veeam Logoby init-s » Wed Mar 01, 2017 6:28 pm

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
init-s
Novice
 
Posts: 5
Liked: 1 time
Joined: Tue Dec 09, 2014 11:42 am
Full Name: Andrea Cerrito

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

Veeam Logoby PTide » Wed Mar 01, 2017 6:54 pm

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
PTide
Veeam Software
 
Posts: 3230
Liked: 269 times
Joined: Tue May 19, 2015 1:46 pm


Return to Veeam Agent for Linux



Who is online

Users browsing this forum: No registered users and 1 guest