manageSchedule

This function allows you to create/modify the Schedule Object.
Parameter name Type Description Possible values Example
id Integer REQUIRED when The ID of the schedule to modify. N/A --id=1
name String REQUIRED when creating new schedule. The Name of the schedule N/A --name="hourly schedule"
backup_id Integer Use this option to specify the job ID when the type is set to --type=6 (After backup job done). N/A --backup_id=1
type Integer REQUIRED when creating new schedule. The integer value for Schedule Type.
  • 1 - Hourly
  • 2 - Daily
  • 3 - Weekly
  • 4 - Monthly
  • 5 - Manually
  • 6 - After backup job done
--type=1
intervals Array or Integer REQUIRED when creating a new schedule, except when --type=6 (After Backup Job Done). Set the schedule interval(s). For --type=1 (Hourly), provide a single integer instead of an array. N/A --intervals=1

Example Call JETAPI

wp jetbackup manageSchedule --name="Hourly schedule" --type=1 --intervals=1
Success
+----+-----------------+------+-----------+-----------+---------+----------------------+
| ID | Name            | Type | Intervals | Backup ID | Default | Backup Jobs Assigned |
+----+-----------------+------+-----------+-----------+---------+----------------------+
| 6  | Hourly schedule | 1    | 1         | 0         |         | 0                    |
+----+-----------------+------+-----------+-----------+---------+----------------------+
wp jetbackup manageSchedule --name="Daily" --type=2 --intervals=[1,2,3,4,5,6,7]
Success
+----+-------+------+---------------+-----------+---------+----------------------+
| ID | Name  | Type | Intervals     | Backup ID | Default | Backup Jobs Assigned |
+----+-------+------+---------------+-----------+---------+----------------------+
| 7  | Daily | 2    |[1,2,3,4,5,6,7]| | 0       |         | 0                    |
+----+-------+------+---------------+-----------+---------+----------------------+