Restoring from Backup Files to RDS for SQL Server Instances
Scenarios
This section describes how to use an automated or manual backup to restore a DB instance to the status when the backup was created.
Constraints
- Constraints on restoring data to a new DB instance:
- The time zone of the new DB instance must be the same as that of the original DB instance. Otherwise, data inconsistency may occur.
- Constraints on restoring data to an existing DB instance (other than the original instance):
- Restoring to an existing DB instance will overwrite data on it and cause the existing DB instance to be unavailable during the restoration.
- To restore backup data to an existing DB instance, the selected DB instance must be in the same VPC as the original DB instance and must have the same DB engine and the same or later version than the original DB instance.
- The storage space of the selected DB instance must be no less than that of the original DB instance. Otherwise, data will not be restored.
- The time zone of the selected DB instance must be the same as that of the original DB instance. Otherwise, data inconsistency may occur.
- DB instances with the TDE function enabled cannot be restored from backups to existing DB instances.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select a region and a project.
- Click Service List. Under Database, click Relational Database Service.
- On the Backups page, locate the target backup and click Restore in the Operation column.
Alternatively, click the target DB instance on the Instances page. In the navigation pane, choose Backups & Restorations. On the displayed page, locate the backup to be restored and click Restore in the Operation column.
- In the displayed dialog box, specify required information and click OK.
- Select a restoration method.
- Create New Instance
The Create New Instance page is displayed.
- The DB engine of the new instance is the same as that of the original instance.
- Storage space of the new DB instance is the same as that of the original DB instance by default and the new instance must be at least as large as the original DB instance.
- Restore to Existing
Select an existing DB instance and click Next.
- Create New Instance
- Select the databases to be restored. You can rename these databases as required. If you do not enter a new name, the original database name will be used.Note
- The new database names must be different from each other and must be different from the original database names.
- The new database names cannot contain the following fields (case-insensitive): rdsadmin, master, msdb, tempdb, model, and resource.
- Each database name consists of 1 to 64 characters. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.
- Select a restoration method.
- View the restoration result. The result depends on which restoration method was selected:
- Create New Instance
A new DB instance is created using the backup data. The status of the DB instance changes from Creating to Available.
The new DB instance is independent from the original one.
- Restore to Existing
On the Instances page, the status of the DB instance changes from Restoring to Available.
- Create New Instance
Parent topic: Data Restorations
- Scenarios
- Constraints
- Procedure