Export-RubrikDatabase
SYNOPSIS
Connects to Rubrik exports a database to a MSSQL instance
SYNTAX
Recovery_timestamp
Export-RubrikDatabase -Id <String> [-MaxDataStreams <Int32>] [-TimestampMs <Int64>] [-FinishRecovery]
[-TargetInstanceId <String>] [-TargetDatabaseName <String>] [-Overwrite] [-Server <String>] [-api <String>]
[-TargetDataFilePath <String>] [-TargetLogFilePath <String>] [-TargetFilePaths <PSObject[]>] [-WhatIf]
[-Confirm] [<CommonParameters>]Recovery_DateTime
Export-RubrikDatabase -Id <String> [-MaxDataStreams <Int32>] [-RecoveryDateTime <DateTime>] [-FinishRecovery]
[-TargetInstanceId <String>] [-TargetDatabaseName <String>] [-Overwrite] [-Server <String>] [-api <String>]
[-TargetDataFilePath <String>] [-TargetLogFilePath <String>] [-TargetFilePaths <PSObject[]>] [-WhatIf]
[-Confirm] [<CommonParameters>]Recovery_LSN
Export-RubrikDatabase -Id <String> [-MaxDataStreams <Int32>] [-RecoveryLSN <String>] [-FinishRecovery]
[-TargetInstanceId <String>] [-TargetDatabaseName <String>] [-Overwrite] [-Server <String>] [-api <String>]
[-TargetDataFilePath <String>] [-TargetLogFilePath <String>] [-TargetFilePaths <PSObject[]>] [-WhatIf]
[-Confirm] [<CommonParameters>]DESCRIPTION
The Export-RubrikDatabase command will request a database export from a Rubrik Cluster to a MSSQL instance
EXAMPLES
EXAMPLE 1
EXAMPLE 2
Restore the $db (where $db is the output of a Get-RubrikDatabase call) to the most recent recovery point for that database. New file paths are in the $targetfiles array. Each individual file declaration (logicalName, exportPath,newFilename) will be a hashtable, so what gets passed to the cmdlet is an array of hashtables
$targetfiles = @() $targetfiles += @{logicalName='BAR_1';exportPath='E:\SQLFiles\Data\BAREXP\'} $targetfiles += @{logicalName='BAR_LOG';exportPath='E:\SQLFiles\Log\BAREXP\'}
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
Take database out of recovery mode after export
-TargetInstanceId
Rubrik identifier of MSSQL instance to export to
-TargetDatabaseName
Name to give database upon export
-Overwrite
-Server
Rubrik server IP or FQDN
-api
API version
-TargetDataFilePath
Simple Mode - Data File Path
-TargetLogFilePath
Simple Mode - Data File Path
-TargetFilePaths
Advanced Mode - Array of hash tables for file reloaction.
-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 Pete Milanese for community usage Twitter: @pmilano1 GitHub: pmilano1
Modified by Mike Fal Twitter: @Mike_Fal GitHub: MikeFal
RELATED LINKS
Last updated
Was this helpful?