Database
Backup and Restore a Database Instance
In this lesson, we will learn how to backup a Database Instance, and then restore it.
Note
The Database backups are saved to Nectar’s Object Storage Service, so you will need sufficient Object Storage quota to cover all of the backups that you intend to keep.
Create a Database Backup
- Navigate to the
Project
/Database
/Instances
page - Find the database instance
tutorial
and click theCreate Backup
button to start theBackup Database
Dialog. - Enter tutorial_backup in
Name
field and select tutorial inDatabase Instance
dropdown list. - Click
Create Backup
button. - Wait until the backup process is finished and you should see the database backup is listed under
Project
/Database
/Backups
.
Restore a Database Backup
The way to restore a Backup is to create a new Database Instance with the Backup as its initial state. You can do this by following the steps for Launching a database (from the previous lesson), with one additional step:
- Navigate to the
Project
/Database
/Instances
page - Click the
Launch Instance
button to start the Create Database Instance dialog. - Select the appropriate Availability Zone from drop down list, enter the
Instance Name
, and select the database version from theDatastore
dropdown. - Click the
Initialize Databases
tab and enter theInitial Databases
,Initial Admin User
,Password
andAllowed Host
fields. - Click the
Advanced
tab and selectRestore from Backup
as theSource for initial state
. Then select the name of the Backup that you want to use from theBackup Name
pulldown list. - Click the
Launch
button. A new Database Instance will be created and populate from the Backup that you provided.
You can also initiate a Database restore by going to the Project
/ Database
/ Backups
page, and running the Restore Backup
action. This starts the Launch Instance
dialog (as above) with many of the fields pre-propulated from the Backup’s metadata.