-
- Novice
- Posts: 7
- Liked: never
- Joined: Feb 02, 2018 8:32 am
- Full Name: Niek Wegh
- Contact:
Pre/Post scripts are not get a failed status
So, I've got an archive application and I have to backup this VM's with veeam now. The only valid backup is a backup I will make if the application is in "backup mode". So I did make some Pre and Post scripts to check if the application is in "backup mode" To my surprise these scripts are only sending a warning merssage and start the backups of those VM's. And that's what I don not want to happen.
I need Pre/Post scripts that are sending a failure messages end quit the backup at once.
I need Pre/Post scripts that are sending a failure messages end quit the backup at once.
-
- Veeam Software
- Posts: 21139
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Pre/Post scripts are not get a failed status
Hi Niek, do you mean your scripts do not return error code upon failing application quiescence? Are you able to modify the script and force it to return some error code? Alternatively, you could stop the job from the script itself, using VeeamPSSnapin.
-
- Novice
- Posts: 7
- Liked: never
- Joined: Feb 02, 2018 8:32 am
- Full Name: Niek Wegh
- Contact:
Re: Pre/Post scripts are not get a failed status
Hi Foggy, My pre and post scripts are generating error codes from -3 to 5, but the effect on the backupjob is still the same. It is ending in a warning status and a backup is always made of the VM's. And that is someting I don't want to happen.
First problem is, that there is barely any documentation how to use pre/post scripts en how they are working. The seccond problem is, if a run a pre or post script that is generating an error code, the backup should not get the status warning, but the status failed!
And if after running the pre script the status is failed, do not make a backup of the VM's. Because this backups are worthless.
So, is it possible that this can be fixed in nearby future by Veeam?
(DataProtector makes it also possible to put your own messages in the backup logfile! another nice feature to implement?)
First problem is, that there is barely any documentation how to use pre/post scripts en how they are working. The seccond problem is, if a run a pre or post script that is generating an error code, the backup should not get the status warning, but the status failed!
And if after running the pre script the status is failed, do not make a backup of the VM's. Because this backups are worthless.
So, is it possible that this can be fixed in nearby future by Veeam?
(DataProtector makes it also possible to put your own messages in the backup logfile! another nice feature to implement?)
-
- Novice
- Posts: 7
- Liked: never
- Joined: Feb 02, 2018 8:32 am
- Full Name: Niek Wegh
- Contact:
Re: Pre/Post scripts are not get a failed status
Hi Veeam Software Guys,
What's your reaction on my post Feb 6 2018 12:29 pm?
What can I expect to happen according the functionality of pre/post scripts?
What's your reaction on my post Feb 6 2018 12:29 pm?
What can I expect to happen according the functionality of pre/post scripts?
-
- Expert
- Posts: 193
- Liked: 47 times
- Joined: Jan 16, 2018 5:14 pm
- Full Name: Harvey Carel
- Contact:
Re: Pre/Post scripts are not get a failed status
Hey Niek,
Not a green poster, but what if you quiesced or used AAP for the machine and set these scripts as pre-freeze/post-thaw? Looking at the user guide, they allow you to set behavior on script error.
https://helpcenter.veeam.com/docs/backu ... tml?ver=95
Would that work?
Not a green poster, but what if you quiesced or used AAP for the machine and set these scripts as pre-freeze/post-thaw? Looking at the user guide, they allow you to set behavior on script error.
https://helpcenter.veeam.com/docs/backu ... tml?ver=95
Would that work?
-
- Veeam Software
- Posts: 21139
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Pre/Post scripts are not get a failed status
Right, using pre-freeze/post-thaw scripts is a more proper way to quiesce the application than pre/post-job scripts.
Who is online
Users browsing this forum: AdsBot [Google], Bing [Bot] and 93 guests