OptionalconfigDir?: stringOptionalgid?: stringDefault user used to create files and dirs
OptionallogDir?: stringDirectory where job logs and job file history is stored
Defaults to {os.homedir}/config
Optionalshell?: string | booleanDefault shell to use for exec jobs. Can be false (no shell used, direct os calls), true (use default os shell), or a specific
shell like /bin/sh or /bin/bash. Default is false
Optionalsource2Root?: stringSecond root directory for job sources. Can be access in job config via dir: "$2/my_source_dir"
Defaults to ./
Optionalsource3Root?: stringThird root directory for job sources. Can be access in job config via dir: "$3/my_source_dir"
Defaults to ./
OptionalsourceRoot?: stringDefault root directory for job sources. Can also be accessed in job source config via dir: "$1/my_source_dir"
Defaults to ./
Optionaltarget2Root?: stringSecond root directory for job targets. Can also be access in job config via dir: "$2/my_target_dir"
Defaults to ./
Optionaltarget3Root?: stringThird root directory for job targets. Can also be access in job config via dir: "$3/my_target_dir"
Default is ./
OptionaltargetRoot?: stringDefault root directory for job targets. Can also be access in job config via dir: "$1/my_target_dir"
Defaults to ./
OptionaltempDir?: stringTemporary directory used as target directory when running jobs in dry_run mode. Defaults to {os.tempdir}/cronops
Optionaluid?: stringDefault user used to create files and dirs. no default
Emitted if job schedule has been changed (checked every 5 seconds)
callback function
Emitted if there was any kind of activity during job execution.
The activity parameter can have the followings values:
EXECUTED: a command has been executed (globally or on a selected source file)COPIED: a source file has been copied to pathDELETED: a source file (path) has been deleted by the JobARCHIVED: selected source files has been archived to pathPRUNED : a target file (path) has been pruned due to expired retention
Note: Activity events are ony emitted, if job config property verbose is set to truecallback
Emitted if any error occurred during job execution
callback
Emitted if manual job execution has been started via executeJob(). Note: This event is not emitted, if the job is paused or already running
callback
Emitted if the job has been finished
callback
Emitted if the job has been successfully scheduled
callback
Emitted if the job has been started by scheduler or triggered manually via executeJob()
callback
Optionalcb: (count: number) => void
Configuration directory where
./jobsand./scriptsare located. Defaults to./config