Restores a DB Instance to an arbitrary point-in-time. Users can restore to any point in time before the latestRestorableTime for up to backupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The identifier of the source DB Instance from which to restore. Constraints:
|
|
|
Required |
The name of the new database instance to be created. Constraints:
|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Restore a database instance to a point in time.
// Instantiate the class $rds = new AmazonRDS(); $response = $rds->restore_db_instance_to_point_in_time('myInstance', 'myInstancerestore', array( 'RestoreTime' => 'yesterday', 'AutoMinorVersionUpgrade' => 'true' )); // Success? var_dump($response->isOK());
Related Methods
Source
Method defined in services/rds.class.php | Toggle source view (14 lines) | View on GitHub