Time Formats

Technical Articles

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

You can use global, Crontab (Linux and macOS only), or schtasks (Windows only) time formats as described below.

Global Frequency Syntax

You can use the following global frequency flags for all platforms:
hourly 
daily HH:MM 
weekly DAY HH:MM
For example, to schedule database backups to run weekly on Sundays at 12:00 p.m., you would enter the following:
jamf-pro database schedules create --schedule-name name --frequency "weekly SUN 12:00"

Crontab Syntax (Linux and macOS only)

Crontab requires five fields, each of which must be a number or an asterisk (*). The five fields are defined as follows:
minute (0 - 59)
| hour (0 - 23)
| | day of month (1 - 31)
| | | month (1 - 12)
| | | | day of week (0 - 6) (Sunday to Saturday)
| | | | |
| | | | |
| | | | |
* * * * *
Enter an asterisk (*) to include every possible value for a field.
Examples
The following command would back up the database at 00:01 (12:01 a.m.) every day:
jamf-pro database schedules create --schedule-name name --frequency "1 0 * * *"
The following command would back up the database at 23:45 (11:45 p.m.) every Saturday:
jamf-pro database schedules create --schedule-name name --frequency "45 23 * * 6"

Schtasks Syntax (Windows only)

Schtasks provides many options for scheduling database backups. For more information, see the following webpage: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks

Example
jamf-pro database schedules create --schedule-name name --frequency "/sc weekly /d MON /st 06:05"