commandsjob diff

List the differences between two versions of a job.

Usage

job diff name [before [after]]

where
name of job whose differences to list.
before change id, or change relative index, as listed by job changes. Default is -2 if job is enabled, -1 otherwise.
after change id, or relative change index, as listed by job changes. Default is 0.

read on name

Examples

List the differences between the previous and current versions of a job

BeyondCron % job diff /examples/sleepy

Mode Disabled -> Enabled Calendar + /examples/calendar/weekday/Japan

because the job is enabled, BeyondCron displayed the difference between the current (0), and the 2nd previous (-2) versions of the job. This is because enabling/disabling a job creates a separate version of the job.

List the differences between earlier versions of a job

BeyondCron % job changes /examples/sleepy

Time Change Action User Host ------------------- ------- -- ------- ------ ----------- 14:13:42 today 96f72e6 0 Updated admin example.com 14:13:38 today 7e365a9 -1 Updated admin example.com 14:12:45 today 8a1ad95 -2 Updated admin example.com 15:00:51 02/07/2017 f8885cf -3 Updated jsmith example.com 15:00:45 02/07/2017 a71d339 -4 Created jsmith example.com

BeyondCron % job diff $$ 7e365a9

Calendar + /examples/calendar/weekday/Japan

List the differences between the first and current version of a job

BeyondCron % job diff /examples/sleepy -4

Mode Disabled -> Enabled Calendar + /examples/calendar/weekday/Japan

See also