Discussions related to exporting backups to tape and backing up directly to tape.
Post Reply
chas0rde
Enthusiast
Posts: 28
Liked: 3 times
Joined: Jan 14, 2015 7:01 am
Contact:

Return codes and messages on pre-job scripts

Post by chas0rde »

Hello everyone,
as I recently learned, backup jobs could kill tape jobs

Therefore I wrote a script that is supposed to run pre-job an check if the corresponding tape job is still running and if so wait until this is through (by sleeping for x seconds)
That working I wondered if it would be possible to return different information to the backup job.

e.g. if a tape job supplied to a backup job might not exist generate a warning in the log of the backup job

Is this possible somehow? At best I would like to supply different error levels from the pre script (as well as a message) that is then shown in the backup's log

Best regards
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Return codes and messages on pre-job scripts

Post by veremin »

You cannot write directly to job logs. However, there is nothing preventing you from creating a custom logs, writing to it whatever information you need and send it to the corresponding email afterwards. Thanks.
chas0rde
Enthusiast
Posts: 28
Liked: 3 times
Joined: Jan 14, 2015 7:01 am
Contact:

Re: Return codes and messages on pre-job scripts

Post by chas0rde »

Hello
custom logs are generated on the VBR host by the script in any case
I'd just like to add a line to the Jobs log

How might that be done? My script is a ps1 called by a cmd

Best regards
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Return codes and messages on pre-job scripts

Post by veremin »

I've made a typo, while writing the last message. The correct wording should have been - "You cannot write directly to job logs".

There is no way to add information to the job log, so, the custom log seems to be the only way to go.

Thanks.
chas0rde
Enthusiast
Posts: 28
Liked: 3 times
Joined: Jan 14, 2015 7:01 am
Contact:

Re: Return codes and messages on pre-job scripts

Post by chas0rde »

Thats sad...I'll add a feature request ;)

Thanks for the infos so far
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Return codes and messages on pre-job scripts

Post by veremin »

Your voice is heard. Though, I don't think that it's going to be a good idea to let customers directly add information to the session's logs. Being incorrectly formatted or badly written, those operations could easily overfill sessions' view and/or make them unreadable. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests