Get-VESQLDatabaseRestoreInterval
Short Description
Returns details on the available restore period for a backed-up Microsoft SQL database.
Applies to
Veeam Backup & Replication
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Get-VESQLDatabaseRestoreInterval [-Database] <VESQLDatabase> [<CommonParameters>] |
Detailed Description
This cmdlet returns details on the available restore period for a backed-up Microsoft SQL Server database.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Database | Specifies a backed-up Microsoft SQL Server database. The cmdlet will return details on the available restore period for the specified database. | Accepts the VESQLDatabase object. To get this object, run the Get-VESQLDatabase cmdlet. | True | 0 | True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Output Object
The cmdlet returns the VESQLDatabaseRestoreInterval object that contains details on available restore period for the backed-up Microsoft SQL database.
Example
Getting Details on Available Restore Period for Backed-Up Microsoft SQL Database
This example shows how to get details on an available restore period for a backed-up Microsoft SQL database.
$session = Get-VESQLRestoreSession $database = Get-VESQLDatabase -Session $session[0] -Name "SQLDatabase" Get-VESQLDatabaseRestoreInterval -Database $database |
Perform the following steps:
- Run the Get-VESQLRestoreSession cmdlet. Save the result to the $session variable.
- Run the Get-VESQLDatabase cmdlet. Set the $session variable as the Session parameter value and select the necessary restore session. Specify the Name parameter value. Save the result to the $database variable.
- Run the Get-VESQLDatabaseRestoreInterval cmdlet. Set the $database variable as the Database parameter value.
Related Commands