Cron & compatible
On non-Windows OS, use a crond-compatible scheduler if specified in global/scheduler:
Windows No Longer Supported
Crond support on Windows has been removed due to significant issues in previous versions.
[global]
scheduler = "crond"---
global:
scheduler: crond"global" = {
"scheduler" = "crond"
}{
"global": {
"scheduler": "crond"
}
}This configuration uses the default crontab tool shipped with crond.
You can specify the location of the crontab tool:
[global]
scheduler = "crond:/usr/bin/crontab"---
global:
scheduler: crond:/usr/bin/crontab"global" = {
"scheduler" = "crond:/usr/bin/crontab"
}{
"global": {
"scheduler": "crond:/usr/bin/crontab"
}
}Crontab
You can use a crontab file directly instead of the crontab tool:
crontab:*:filepath: Use a crontab filefilepathwith a user field filled in automaticallycrontab:username:filepath: Use a crontab filefilepathwith a user field always set tousernamecrontab:-:filepath: Use a crontab filefilepathwithout a user field
With user field
[global]
scheduler = "crontab:*:/etc/cron.d/resticprofile"---
global:
scheduler: "crontab:*:/etc/cron.d/resticprofile""global" = {
"scheduler" = "crontab:*:/etc/cron.d/resticprofile"
}{
"global": {
"scheduler": "crontab:*:/etc/cron.d/resticprofile"
}
}Without a user field
[global]
scheduler = "crontab:-:/var/spool/cron/crontabs/username"---
global:
scheduler: "crontab:-:/var/spool/cron/crontabs/username""global" = {
"scheduler" = "crontab:-:/var/spool/cron/crontabs/username"
}{
"global": {
"scheduler": "crontab:-:/var/spool/cron/crontabs/username"
}
}