2.5

Safeguarding Data 4
Taking regular backups of your databases is essential to safeguarding your data. Data Director tracks and
stores changes for each database on a virtual disk associated with that database. Back up your database to
capture the changes, preserve the database, and enable recovering the database and restoring its data after a
failure. You can also restore the database to its state at a particular time and replay changes to troubleshoot a
problem.
See the vFabric Data Director Administrator and User Guide for a a discussion of available backup procedures.
The API supports all features that the Data Director UI supports.
This chapter includes the following topics:
n
“Back Up Data,” on page 31
n
“Restore Data,” on page 32
Back Up Data
You can use the Data Director GUI to create backup templates and schedule regular backups, or you can back
up data with the Data Director API.
This call creates a snapshot of a database.
Procedure
u
Use an HTTP POST call to back up the database.
POST https://example.aurora.com/datadirector/api/database/98/backups
Content-Type : application/json
Authorization : Basic YWRtaW5AYXVyb3JhLnZtd2FyZS5jb206Y2xvdWRibXM=
Accept : application/json
{
"createBackup": {
"label": "REST API example",
"snapshotBackup": true
}
}
The response that the system returns might look as follows.
202 Accepted
location : https://example.aurora.com/datadirector/api/task/82
What to do next
When you need the snapshot of the database, you can use the API to retrieve it.
VMware, Inc.
31