# Export-CVSQLDatabaseRTD

The `Export-CVSQLDatabaseRTD` cmdlet restores backed-up data to a disk that is either on the same SQL server or a different SQL server.

Before you can use this cmdlet, you must log on to your CommCell environment using the `Connect-CVServer` cmdlet. For more information, see Connecting to a CommCell Environment with PowerShell.

## Syntax

    Export-CVSQLDatabaseRTD -DatabaseObject $[Object] [-JobId $[int32]] -DestClientName $[String] -DestDiskPath $[String] [-OverwriteExisting] [$[CommonParameters]]

## Required Parameters

Parameter | Description | Data type | Accepts pipeline input? | Accepts wildcard characters? | Type of parameter
--- | --- | --- | --- | --- | ---
`–DatabaseObject` | The object that represents the database. | Object | Yes, by: Value Property name | No | Named
`–DestClientName` | The name of the destination client. | String | No | No | Named
`–DestDiskPath` | The path to the disk where you want to export the data. | String | No | No | Named

## Optional Parameters

### Commvault Parameters

Parameter | Description | Data type | Accepts pipeline input? | Accepts wildcard characters? | Type of parameter
--- | --- | --- | --- | --- | ---
`–JobId` | The ID of the job to be used to export the SQL database files. | Int32 | No | No | Named
`–OverwriteExisting` | Overwrites the existing database. | SwitchParameter | No | No | Named

### Microsoft PowerShell Parameters

You can use the following Microsoft PowerShell parameters:

- Debug

- ErrorAction

- ErrorVariable

- OutBuffer

- OutVariable

- PipelineVariable

- Verbose

- WarningAction

- WarningVariable

- Force

- Confirm

- WhatIf

Note

Only a few cmdlets support Force, Confirm, and WhatIf parameters.

For more information, see "About Common Parameters" in the Microsoft PowerShell documentation.

## Input

This cmdlet does not support input.

## Output

A message that indicates whether the restore completed successfully.

×

Loading...