Get-RubrikDatabaseRecoveryPoint

SYNOPSIS

Retrieves a date time combination either from Rubrik API calls or with entered information that is formated for use by other Rubrik cmdlets

SYNTAX

Latest

Get-RubrikDatabaseRecoveryPoint [-id] <String> [-Latest] [<CommonParameters>]

LastFull

Get-RubrikDatabaseRecoveryPoint [-id] <String> [-LastFull] [<CommonParameters>]

RestoreTime

Get-RubrikDatabaseRecoveryPoint [-id] <String> [-RestoreTime <DateTime>] [<CommonParameters>]

DESCRIPTION

The Get-RubrikDatabaseRecoveryPoint cmdlet is used to pull date time combination from either Get-RubrikDatabase or Get-RubrikSnapshot based on a database ID. When we pull the value from those cmdlets, we will use that in Export-RubrikDatabase, New-RubrikDatabaseMount, Restore-RubrikDatabase. We will also pass in a time to get back a date time combination or an exact time. ALl results will be returned back in UTC so that the cmdlets can properly perform their functions.

EXAMPLES

EXAMPLE 1

This will return back a date time combination that prepresents the latest recovery point known to Rubrik about this database. This will include the last snapshot and any transaction log backup taken since that last snapshot was taken.

EXAMPLE 2

This will return back a date time combination that prepresents the recovery point known to Rubrik about this database based on the most recent snapshot taken.

EXAMPLE 3

This will return back a date time combination that represents todays date at 2am, but converted to UTC. The time entered into the RestoreTime field will be in local time.

EXAMPLE 4

This will return back a date time combination that represents the local date time value entered into the RestoreTme field, converted to UTC.

PARAMETERS

-id

Rubrik's database id value

-Latest

A time to which the database should be restored to. latest: This will tell Rubrik to export the database to the latest recovery point Rubrik knows about This will include the last full and any logs to get to the latest recovery point

-LastFull

-RestoreTime

A time to which the database should be restored to. Format: (HH:MM:SS.mmm) at the point in time specified within the last 24 hours Format: Any valid \ that PS Get-Date supports in: "Get-Date -Date \" Example: "2018-08-01T02:00:00.000Z" restores back to 2AM on August 1, 2018 UTC.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Written by Chris Lumnah for community usage Twitter: @lumnah GitHub: clumnah

https://rubrik.gitbook.io/rubrik-sdk-for-powershell/command-documentation/reference/get-rubrikdatabaserecoverypoint

Last updated

Was this helpful?