Set-RubrikDatabase
SYNOPSIS
Sets Rubrik database properties
SYNTAX
Global (Default)
Set-RubrikDatabase -id <String> [-SLAID <String>] [-SLA <String>] [-DisablePreBackupScript]
[-DisablePostBackupScript] [-LogBackupFrequencyInSeconds <Int32>] [-LogRetentionHours <Int32>] [-CopyOnly]
[-MaxDataStreams <Int32>] [-Server <String>] [-api <String>] [-WhatIf] [-Confirm] [<CommonParameters>]PostScript
Set-RubrikDatabase -id <String> [-SLAID <String>] [-SLA <String>] [-DisablePreBackupScript]
-PostScriptPath <String> -PostScriptErrorAction <String> -PostTimeoutMs <Int32>
[-LogBackupFrequencyInSeconds <Int32>] [-LogRetentionHours <Int32>] [-CopyOnly] [-MaxDataStreams <Int32>]
[-Server <String>] [-api <String>] [-WhatIf] [-Confirm] [<CommonParameters>]PostScriptDisable
Set-RubrikDatabase -id <String> [-SLAID <String>] [-SLA <String>] [-DisablePreBackupScript]
[-DisablePostBackupScript] [-LogBackupFrequencyInSeconds <Int32>] [-LogRetentionHours <Int32>] [-CopyOnly]
[-MaxDataStreams <Int32>] [-Server <String>] [-api <String>] [-WhatIf] [-Confirm] [<CommonParameters>]PreScriptDisable
PreScript
SLAbyName
SLAbyId
DESCRIPTION
The Set-RubrikDatabase cmdlet is used to update certain settings for a Rubrik database.
EXAMPLES
EXAMPLE 1
Set the target database's log backup interval to 15 minutes (900 seconds)
EXAMPLE 2
Set all databases on host FOO to use SLA Silver and be copy only.
EXAMPLE 3
Set-RubrikDatabase -id $RubrikDatabase.id -PreScriptPath "c:\temp\test.bat" -PreScriptErrorAction "continue" -PreTimeoutMs 300
Set a script to run before a Rubrik Backup runs against the database
EXAMPLE 4
Set-RubrikDatabase -id $RubrikDatabase.id -PostScriptPath "c:\temp\test.bat" -PostScriptErrorAction "continue" -PostTimeoutMs 300
Set a script to run after a Rubrik Backup runs against the database
EXAMPLE 5
Set-RubrikDatabase -id $RubrikDatabase.id -DisablePreBackupScript
Remove a script from running before a Rubrik Backup
EXAMPLE 6
Set-RubrikDatabase -id $RubrikDatabase.id -DisablePostBackupScript
Remove a script from running after a Rubrik Backup
EXAMPLE 7
Set-RubrikDatabase -id $RubrikDatabase.id -MaxDataStreams 3
Modifies the Max Data Streams allowed for a specified database
PARAMETERS
-id
Rubrik's database id value
-SLAID
SLA Domain ID for the database
-SLA
The SLA Domain name in Rubrik
-PreScriptPath
Pre-backup script parameters
-PreScriptErrorAction
-PreTimeoutMs
-DisablePreBackupScript
-PostScriptPath
Post-backup script parameters
-PostScriptErrorAction
-PostTimeoutMs
-DisablePostBackupScript
-LogBackupFrequencyInSeconds
Number of seconds between log backups if db is in FULL or BULK_LOGGED NOTE: Default of -1 is used to get around ints defaulting as 0
-LogRetentionHours
Number of hours backups will be retained in Rubrik NOTE: Default of -1 is used to get around ints defaulting as 0
-CopyOnly
Boolean declaration for copy only backups on the database.
-MaxDataStreams
Number of max data streams Rubrik will use to back up the database NOTE: Default of -1 is used to get around ints defaulting as 0
-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 for community usage Twitter: @Mike_Fal GitHub: MikeFal
RELATED LINKS
Last updated
Was this helpful?