Acquia\Cloud\Api\CloudApiClient::downloadDatabaseBackup PHP Method

downloadDatabaseBackup() public method

See also: http://cloudapi.acquia.com/#GET__sites__site_envs__env_dbs__db_backups__backup_download-instance_route
public downloadDatabaseBackup ( string $site, string $env, string $db, integer $backupId, string $outfile ) : Guzzle\Http\Message\Response
$site string
$env string
$db string
$backupId integer
$outfile string
return Guzzle\Http\Message\Response
    public function downloadDatabaseBackup($site, $env, $db, $backupId, $outfile)
    {
        $variables = array('site' => $site, 'env' => $env, 'db' => $db, 'id' => $backupId);
        return $this->get(array('{+base_path}/sites/{site}/envs/{env}/dbs/{db}/backups/{id}/download.json', $variables))->setResponseBody($outfile)->send();
    }