Return codes and messages on pre-job scripts

Everything about backing up to tape

Return codes and messages on pre-job scripts

Veeam Logoby chas0rde » Mon Aug 03, 2015 11:39 am

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
chas0rde
Enthusiast
 
Posts: 28
Liked: 3 times
Joined: Wed Jan 14, 2015 7:01 am

Re: Return codes and messages on pre-job scripts

Veeam Logoby v.Eremin » Mon Aug 03, 2015 11:43 am

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.
v.Eremin
Veeam Software
 
Posts: 13250
Liked: 965 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Return codes and messages on pre-job scripts

Veeam Logoby chas0rde » Mon Aug 03, 2015 11:56 am

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
chas0rde
Enthusiast
 
Posts: 28
Liked: 3 times
Joined: Wed Jan 14, 2015 7:01 am

Re: Return codes and messages on pre-job scripts

Veeam Logoby v.Eremin » Mon Aug 03, 2015 12:22 pm

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.
v.Eremin
Veeam Software
 
Posts: 13250
Liked: 965 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Return codes and messages on pre-job scripts

Veeam Logoby chas0rde » Wed Aug 05, 2015 6:40 am

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

Thanks for the infos so far
chas0rde
Enthusiast
 
Posts: 28
Liked: 3 times
Joined: Wed Jan 14, 2015 7:01 am

Re: Return codes and messages on pre-job scripts

Veeam Logoby v.Eremin » Tue Aug 11, 2015 4:10 pm

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.
v.Eremin
Veeam Software
 
Posts: 13250
Liked: 965 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to Tape



Who is online

Users browsing this forum: Andreas Daesch and 6 guests