Last updated
Last updated
Sets Rubrik database properties
The Set-RubrikDatabase cmdlet is used to update certain settings for a Rubrik database.
Set the target database's log backup interval to 15 minutes (900 seconds)
Set all databases on host FOO to use SLA Silver and be copy only.
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
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
Set-RubrikDatabase -id $RubrikDatabase.id -DisablePreBackupScript
Remove a script from running before a Rubrik Backup
Set-RubrikDatabase -id $RubrikDatabase.id -DisablePostBackupScript
Remove a script from running after a Rubrik Backup
Set-RubrikDatabase -id $RubrikDatabase.id -MaxDataStreams 3
Modifies the Max Data Streams allowed for a specified database
Rubrik's database id value
SLA Domain ID for the database
The SLA Domain name in Rubrik
Pre-backup script parameters
Post-backup script parameters
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
Number of hours backups will be retained in Rubrik NOTE: Default of -1 is used to get around ints defaulting as 0
Boolean declaration for copy only backups on the database.
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
Rubrik server IP or FQDN
API version
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Prompts you for confirmation before running the cmdlet.
Written by Mike Fal for community usage Twitter: @Mike_Fal GitHub: MikeFal
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see .