Loading...

Mount-CVSQLDatabase

The Mount-CVSQLDatabase cmdlet creates a SQL server database recovery point.

Before you can use this cmdlet, you must log on to your CommCell environment using the Connect-CVServer cmdlet. For more information, see Connecting to a CommCell Environment with PowerShell.

Syntax

Mount-CVSQLDatabase -Name <String> [-DestDatabaseName <String>] [-ExpireDays <Int32>] [-OverwriteDatabase] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Mount-CVSQLDatabase -DatabaseObject <Object> [-DestDatabaseName <String>] [-ExpireDays <Int32>] [-OverwriteDatabase] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Required Parameters

Parameter

Description

Data type

Accepts pipeline input?

Accepts wildcard characters?

Type of parameter

–Name

The name of the database.

String

No

No

Named

–DatabaseObject

The object that represents the database.

Object

Yes, by:

  • Value
  • Property name

No

Named

Optional Parameters

Commvault Parameters

Parameter

Description

Data type

Values

Accepts pipeline input?

Accepts wildcard characters?

Type of parameter

–DestDatabaseName

The name of the destination database.

String

 

No

No

Named

–ExpiryDays

Specifies the recovery point.

Int32

The default value is 30.

No

No

Named

–OverwriteDatabase

Overwrites the existing database.

SwitchParameter

 

No

No

Named

Microsoft PowerShell Parameters

You can use the following Microsoft PowerShell parameters:

  • Debug
  • ErrorAction
  • ErrorVariable
  • OutBuffer
  • OutVariable
  • PipelineVariable
  • Verbose
  • WarningAction
  • WarningVariable
  • Force
  • Confirm
  • WhatIf

Note: Only a few cmdlets support Force, Confirm, and WhatIf parameters.

For more information, see "About Common Parameters" in the Microsoft PowerShell documentation.

Input

This cmdlet does not support input.

Output

A message that indicates whether the mount operation completed successfully.

Last modified: 3/18/2020 8:27:28 AM