Get-VESQLDatabaseRestoreInterval
Short Description
Returns details on the available restore period for a backed-up Microsoft SQL Server database.
Product: 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 |
True |
0 |
True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters 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 Server database.
Examples
Getting Details on Available Restore Period for Backed-Up Microsoft SQL Server Database
This example shows how to get details on the available restore period for a backed-up Microsoft SQL Server database.
|
$session = Get-VESQLRestoreSession $database = Get-VESQLDatabase -Session $session[0] -Name "SQLDatabase" Get-VESQLDatabaseRestoreInterval -Database $database |
Perform the following steps:
- Run the
Get-VESQLRestoreSessionReturns active restore sessions started to perform operations with backed-up Microsoft SQL Server databases. cmdlet. Save the result to the$sessionvariable. The cmdlet will return an array of active restore sessions. Note the ordinal number of the necessary restore session (in this example, it is the first restore session in the array). - Run the
Get-VESQLDatabaseReturns backed-up Microsoft SQL Server databases. cmdlet. Set the$sessionvariable as theSessionparameter value and select the necessary restore session. Specify theNameparameter value. Save the result to the$databasevariable. - Run the
Get-VESQLDatabaseRestoreIntervalcmdlet. Set the$databasevariable as theDatabaseparameter value.
Related Commands
Get-VESQLRestoreSessionReturns active restore sessions started to perform operations with backed-up Microsoft SQL Server databases.Get-VESQLDatabaseReturns backed-up Microsoft SQL Server databases.