|
| 1 | +## This is your jobfile: use it to tell Jobber what jobs you want it to |
| 2 | +## run on your behalf. For details of what you can specify here, |
| 3 | +## please see https://dshearer.github.io/jobber/doc/. |
| 4 | +## |
| 5 | +## It consists of two sections: "prefs" and "jobs". In "prefs" you can |
| 6 | +## set various general settings. In "jobs", you define your jobs. |
| 7 | + |
| 8 | +version: 1.4 |
| 9 | + |
| 10 | +prefs: |
| 11 | + ## You can have the Jobber daemon keep a log of various activities |
| 12 | + ## with the "logPath" setting; the log will be written to the given |
| 13 | + ## path (if the path is relative, it will be interpreted relative to |
| 14 | + ## your home directory). Your user account must be able to write to |
| 15 | + ## the given path. NOTE: This is NOT where logs about job runs |
| 16 | + ## are stored --- for that, see the "runLog" setting below. WARNING: |
| 17 | + ## Jobber will NOT rotate this file. |
| 18 | + #logPath: jobber-log |
| 19 | + |
| 20 | + ## You can specify how info about past runs is stored. For |
| 21 | + ## "type: memory" (the default), they are stored in memory and |
| 22 | + ## are lost when the Jobber service stops. |
| 23 | + #runLog: |
| 24 | + # type: memory |
| 25 | + # maxLen: 100 # the max number of entries to remember |
| 26 | + |
| 27 | + ## For "type: file", past run logs are stored on disk. The log file is |
| 28 | + ## rotated when it reaches a size of 'maxFileLen' MB. Up to |
| 29 | + ## 'maxHistories' historical run logs (that is, not including the |
| 30 | + ## current one) are kept. |
| 31 | + #runLog: |
| 32 | + # type: file |
| 33 | + # path: /tmp/claudius |
| 34 | + # maxFileLen: 50m # in MB |
| 35 | + # maxHistories: 5 |
| 36 | + |
| 37 | +resultSinks: |
| 38 | + #- &programSink |
| 39 | + # type: program |
| 40 | + # path: /home/handleError.sh |
| 41 | + |
| 42 | + #- &systemEmailSink |
| 43 | + # type: system-email |
| 44 | + |
| 45 | + #- &filesystemSink |
| 46 | + # type: filesystem |
| 47 | + # path: /path/to/dir |
| 48 | + # data: [stdout, stderr] |
| 49 | + # maxAgeDays: 10 |
| 50 | + |
| 51 | +jobs: |
| 52 | + ## This section must contain a YAML sequence of maps like the following: |
| 53 | + #DailyBackup: |
| 54 | + # cmd: backup daily # shell command to execute |
| 55 | + # time: '* * * * * *' # SEC MIN HOUR MONTH_DAY MONTH WEEK_DAY. |
| 56 | + # onError: Continue # what to do when the job has an error: Stop, Backoff, or Continue |
| 57 | + # notifyOnError: [*programSink] # what to do with result when job has an error |
| 58 | + # notifyOnFailure: [*systemEmailSink, *programSink] # what to do with result when the job stops due to errors |
| 59 | + # notifyOnSuccess: [*filesystemSink] # what to do with result when the job succeeds |
| 60 | + Daily: |
| 61 | + cmd: cd /DocDB/DocDB/scripts; ./DocDBDaily.csh > /dev/null |
| 62 | + time: R 0 * * * * |
| 63 | + onError: Continue |
| 64 | + Weekly: |
| 65 | + cmd: cd /DocDB/DocDB/scripts; ./DocDBWeekly.csh > /dev/null |
| 66 | + time: R 0 * * * 0 |
| 67 | + onError: Continue |
0 commit comments