Menu

#618 Variable SUCCESS

areca-7.x
open
nobody
SUCCESS (1)
1
2018-01-24
2018-01-22
Joe Hechti
No

There are Parameters for the postprocessing of a script in ARECA BACKUP,.
One of these Parameters is %SUCCESS%. The Values are Numbers (0, 1 ...).
After a successfull full-backup I've got "0", after a incremental backup where no file was changed and so nothing was backed, I've got a "1".
What I need is a complete list of the possible SUCCESS-Values and there meaning/content.
Any help wold be fine!
regards

Discussion

  • Matej Vostrak

    Matej Vostrak - 2018-01-23

    hey, I tried to use too, but it's not working properly.. so after that, I used the Arece function
    "save reports" and filled the variable cross the cmd file.... like as open this file and look for the values, what I want to use...

    example:
    @echo processing.... %errorstat%
    for /f "tokens=*" %%a in (%~s1) do (
    if "%%a"=="Overall Status : Success" set status=Success&& set errorstat=0
    if "%%a"=="Overall Status : Failure" set status=Failure&& set errorstat=2
    if "%%a"=="Errors and Warnings :" if !errorstat! EQU 0 set status=Warnings&& set errorstat=1
    if !line! EQU 0 for /f "tokens=1 delims==()" %%b in ("%%a") do set jobname=%%b
    set /a line+=1
    )

    goto sendmail

     
    • Joe Hechti

      Joe Hechti - 2018-01-23

      Hi,
      thats a very good idea and I think I will do it that way too.
      thank you for your help!

       
  • Matej Vostrak

    Matej Vostrak - 2018-01-24

    you are welcome, and then write how you solved, I think you are inspired :)

     

Log in to post a comment.