Quantcast
Channel: Symantec Connect - Backup and Recovery - Discussions
Viewing all articles
Browse latest Browse all 5847

I want BPEND fails

$
0
0
I need a solution

Hello,

I use bpstart/end for some of my backups, my problem is : even when there's an error on my bpend, the errorcode for he backup is 0

I tried this for my tests : 

 

echo KO >> ficlog.txt

find KO ficlog.txt

if %errorlevel% EQU 0 then

echo 900 > %6

when i put this code in bpstart : my backup fails immediatly with error code 73 (and a file is created ine the bin directory with 900 inside)

when i put the same code in my bpend, the backup do its job (and it s totaly normal) but the errorcode is 0

I tried %5 but dont work better.

 

He point is that i need to be able to see through the activity monitor if there was a pb on bpstart/end, in his example, i need to see if one of my services didnt start correcltly at the end of the backup

 

I also tried :

echo KO >> ficlog.txt

find KO ficlog.txt

if %errorlevel% EQU 0 then

exit 900

Why 900 ? just a random number 

 

So , is there a way to make the backup exit with an errorcode > 1 when something fails in the bp_end

I m under netbackup 6.5

 


Viewing all articles
Browse latest Browse all 5847

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>