Get-RubrikDatabaseFiles

SYNOPSIS

Connects to Rubrik and retrieves all the data files for a SQL Server Database snapshot

SYNTAX

RecoveryDateTime

Get-RubrikDatabaseFiles [-Id] <String> [-RecoveryDateTime <DateTime>] [<CommonParameters>]

Time

Get-RubrikDatabaseFiles [-Id] <String> [-time <String>] [-Server <String>] [-api <String>] [<CommonParameters>]

DESCRIPTION

The Get-RubrikDatabaseFiles cmdlet will return all the available databasem files for a database snapshot. This is based on the recovery time for the database, as file locations could change between snapshots and log backups. If no date time is provided, the database's latest recovery point will be used

WARNING This is based on an internal endpoint and is subject to change by the REST API team.

EXAMPLES

EXAMPLE 1

This will return files for database id "11111111-2222-3333-4444-555555555555".

EXAMPLE 2

This will return details on mount id "11111111-2222-3333-4444-555555555555" from a recovery point one day ago, assuming that recovery point exists.

EXAMPLE 3

This will return details on mount id "11111111-2222-3333-4444-555555555555" from UTC '2017-08-08 01:15:00', assuming that recovery point exists.

PARAMETERS

-Id

Rubrik's id of the mount

-RecoveryDateTime

Recovery Point desired in the form of DateTime value

-time

Recovery Point desired in the form of a UTC string (yyyy-MM-ddTHH:mm:ss)

-Server

Rubrik server IP or FQDN

-api

API version

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 for community usage Twitter: @Mike_Fal GitHub: MikeFal

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

Last updated

Was this helpful?