Restore-RubrikDatabase
SYNOPSIS
Connects to Rubrik and restores a MSSQL database
SYNTAX
Recovery_timestamp
Restore-RubrikDatabase -Id <String> [-MaxDataStreams <Int32>] [-TimestampMs <Int64>] [-FinishRecovery]
[-Server <String>] [-api <String>] [-WhatIf] [-Confirm] [<CommonParameters>]Recovery_DateTime
Restore-RubrikDatabase -Id <String> [-MaxDataStreams <Int32>] [-RecoveryDateTime <DateTime>] [-FinishRecovery]
[-Server <String>] [-api <String>] [-WhatIf] [-Confirm] [<CommonParameters>]Recovery_LSN
Restore-RubrikDatabase -Id <String> [-MaxDataStreams <Int32>] [-RecoveryLSN <String>] [-FinishRecovery]
[-Server <String>] [-api <String>] [-WhatIf] [-Confirm] [<CommonParameters>]DESCRIPTION
The Restore-RubrikDatabase command will request a database restore from a Rubrik Cluster to a MSSQL instance. This is an inplace restore, meaning it will overwrite the existing asset.
EXAMPLES
EXAMPLE 1
Restore database to declared epoch ms timestamp.
EXAMPLE 2
Restore the $db (where $db is the outoput of a Get-RubrikDatabase call) to the most recent recovery point for that database.
EXAMPLE 3
Restore using the pipeline to get the database ID.
PARAMETERS
-Id
Rubrik identifier of database to be exported
-MaxDataStreams
Number of parallel streams to copy data
-TimestampMs
Recovery Point desired in the form of Epoch with Milliseconds
-RecoveryDateTime
Recovery Point desired in the form of DateTime value
-RecoveryLSN
Recovery Point desired in the form of an LSN (Log Sequence Number)
-FinishRecovery
If FinishRecover is true, fully recover the database
-Server
Rubrik server IP or FQDN
-api
API version
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
-Confirm
Prompts you for confirmation before running the cmdlet.
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 Mike Fal Twitter: @Mike_Fal GitHub: MikeFal
RELATED LINKS
Last updated
Was this helpful?