copy_db_snapshot ( $source_db_snapshot_identifier, $target_db_snapshot_identifier, $opt )

Copies the specified DBSnapshot. The source DBSnapshot must be in the “available” state.

Access

public

Parameters

Parameter

Type

Required

Description

$source_db_snapshot_identifier

string

Required

The identifier for the source DB snapshot. Constraints:

  • Must be the identifier for a valid system snapshot in the “available” state.

Example: rds:mydb-2012-04-02-00-01

$target_db_snapshot_identifier

string

Required

The identifier for the copied snapshot. Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-snapshot

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Source

Method defined in services/rds.class.php | Toggle source view (8 lines) | View on GitHub

public function copy_db_snapshot($source_db_snapshot_identifier, $target_db_snapshot_identifier, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['SourceDBSnapshotIdentifier'] = $source_db_snapshot_identifier;
    $opt['TargetDBSnapshotIdentifier'] = $target_db_snapshot_identifier;
    
    return $this->authenticate('CopyDBSnapshot', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback