Backup Schedulers¶
Backup schedulers are a set of rules to automate the creation and deletion of remote snapshots. It is possible to configure a backup scheduler to periodically create remote snapshots , e.g. daily, weekly or monthly. Also, it is possible to configure the retention policy to automate the deletion of the remote snapshots created by the scheduler.
There are three different types of schedulers:
- dr
- migration
- backup
Allowed HTTP methods¶
Method | Description |
---|---|
GET | get / list object/s |
POST | create new object/s |
PUT | update / modify object/s |
DELETE | delete object/s |
Note
See RFC 2616#section-9 for more details on HTTP methods semantics.
Listing¶
Listing schedulers by type¶
Detailed listing¶
Detailed listing schedulers by type¶
List single backup scheduler¶
Creating¶
-
POST
/backupschedulers/
¶ - Creates a new backup scheduler.
Status Codes: - 201 Created – object created
Example request:
Example response
Editing¶
Deleting¶
Single backup scheduler¶
-
DELETE
/backupschedulers/{uuid}/
¶ Deletes a single backup scheduler.
Status Codes: - 204 No Content – No content, object deletion started.
Example request:
Example response:
Deletes multiple backup schedulers¶
-
DELETE
/backupschedulers/
¶ Deletes multiple backup schedulers specified by their UUID’s.
statuscode 204: No content, object deletion started. Example request:
Request body
{"objects": [ { "uuid":"b137e217-42b6-4ecf-8575-d72efc2d3dbd", }, { "uuid":"e035a488-8587-4a15-ab25-9b7343236bc9", }, { "uuid":"feded33c-106f-49fa-a1c4-be5c718ad1b5", } ] }
Example response:
HTTP/1.0 204 NO CONTENT
Set scheduler to a drive¶
-
POST
/drives/{drive_uuid}/action/?do=set_scheduler
¶ Link a scheduler to a drive identified by drive_uuid.
Status Codes: - 202 Accepted – Action accepted, execution is proceeding
Example request:
Example response
Allowed timezones¶
The following list are the allowed timezone values for the fields orchestrator_timezone and user_timezone.
Examples of backup schedulers and retention policies¶
Configure a backup scheduler to create a remote snapshot every 45 minutes and only keep those remote snapshots that were taken in the past 2 days.
Configure a backup scheduler to create a remote snapshot every hour between 20:00 hours to 23:00 hours and only keeps those that were taken in the past 7 days.
Configure a weekly backup scheduler to create a remote snapshot every sunday at 23:00 hours and only keeps those that were taken in the past 4 weeks.
Configure a monthly backup scheduler to create a remote snapshot every first of month at 23:59 hours and only keeps those that were taken in the past 6 months.