I see, thank you.
It's a bummer really, since other backup solutions like bareos do provide a
more elaborate control over post schedule events.
Best regards,
John
> Gesendet: Donnerstag, 16. Juni 2016 um 15:46 Uhr
> Von: "Pagnotta, Pamela (CONTR)" <Pamela.Pagnotta AT HQ.DOE DOT GOV>
> An: ADSM-L AT VM.MARIST DOT EDU
> Betreff: Re: [ADSM-L] postschedulecmd question
>
> Hi John,
>
> We use these commands sparingly so I am just reading the documentation. The
> way I read the description, it seems as if the postschedulecmd will run
> regardless of the return code of the actual scheduled backup.
>
> Notes:
> If the postschedulecmd command does not complete with return code 0, the
> client will report that the scheduled event completed with return code 8
> (unless the scheduled operation encounters a more severe error yielding a
> higher return code). If you do not want the postschedulecmd command to be
> governed by this rule, you can create a script or batch file that invokes the
> command and exits with return code 0. Then configure postschedulecmd to
> invoke the script or batch file. The return code for the postnschedulecmd
> command is not tracked, and does not influence the return code of the
> scheduled event.
>
>
> Also looking at the perschedulecmd notes, it says
>
> Note:
> Successful completion of the preschedulecmd command is considered to be a
> prerequisite to running the scheduled operation. If the preschedulecmd
> command does not complete with return code 0, the scheduled operation and any
> postschedulecmd and postnschedulecmd commands will not run. The client
> reports that the scheduled event failed, and the return code is 12. If you do
> not want the preschedulecmd command to be governed by this rule, you can
> create a script or batch file that invokes the command and exits with return
> code 0. Then configure preschedulecmd to invoke the script or batch file. The
> return code for the prenschedulecmd command is not tracked, and does not
> influence the return code of the scheduled event.
>
>
> So it appears that the postschedulecmd would run regardless of the RC of the
> scheduled backup, but not if there is a non-zero RC during the preschedulecmd.
>
>
> Pam
>
> Pam Pagnotta
> Sr. System Engineer
> Criterion Systems, Inc./ActioNet
> Contractor to US. Department of Energy
> Office of the CIO/IM-622
> Office: 301-903-5508
> Mobile: 301-335-8177
>
>
> -----Original Message-----
> From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf
> Of John Keyes
> Sent: Thursday, June 16, 2016 9:28 AM
> To: ADSM-L AT VM.MARIST DOT EDU
> Subject: [ADSM-L] postschedulecmd question
>
> Hi guys, I did not find an answer on the internet to the following question:
> Will a command defined as postschedulecmd be executed if the schedule itself
> fails?
>
> Best regards,
> John
>
|