Add Backup Resource Yearly Auto Backup Preset

To add a yearly auto backup preset, use the following request: 

POST /settings/backups/resources/:resource_id/auto_backup_presets.xml
POST /settings/backups/resources/:resource_id/auto_backup_presets.json

XML Request Example

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/settings/backups/resources/12/auto_backup_presets.xml -d '<auto_backup_preset><resource_id type="integer">12</resource_id><period>yearly</period><max_recovery_points type="integer">1</max_recovery_points><day_to_run_on type="integer">1</day_to_run_on><start_time>2000-01-01T11:48:00Z</start_time>'

JSON Request Example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/settings/backups/resources/12/auto_backup_presets.json -d '{"auto_backup_preset":{"resource_id": 12,"period": "yearly","day_to_run_on": 1,"start_time": "2000-01-01T11:48:00Z","max_recovery_points": 1}}'


auto_backup_preset - the array of auto backup preset parameters

resource_id* - the ID of the backup resource for which the auto backup preset is configured

period* - the period for the auto backup preset that is yearly

max_recovery_points - the maximum number of recovery points created for VS

(lightbulb) day_to_run_on* - the day when the auto backup preset is run. For example, set 0 to run the auto backup preset on Sunday, 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday, or 6 - Saturday.

(lightbulb) start_time - the start time for running the auto backup preset in the [YYYY][MM][DD]T[hh][mm][ss] format

Page History

v.6.1 Edge 2

  • added the following parameters:
    • day_to_run_on
    • start_time