Add-WssBackupConfiguration

Add-WssBackupConfiguration

Adds a backup file specification to a volume that is part of a backup.

Syntax

Parameter Set: Default
Add-WssBackupConfiguration [-Volume] <BackupVolume> [-Configuration] <BackupFileSpec> [ <CommonParameters>]

Detailed Description

The Add-WssBackupConfiguration cmdlet adds a backup file specification to a volume that is part of a backup.

Parameters

-Configuration<BackupFileSpec>

Specifies the backup file specification to add.

Aliases

Config

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Volume<BackupVolume>

Specifies the volume on which to create the backup file specification.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example : 1: Add a backup file specification to a volume

This example adds a backup configuration to a backup volume.

The first command gets a list of backup volumes from the server and stores them in the variable named $ContosoBUVolume10.

The second command gets the backup file specification from the fourth item (located in position 3) in the $ContosoBUVolume10 array.

The third command adds the backup file specification in $ContosoBUConfig10 to the sixth item (located in position 5) in the $ContosoBUVolume10 array.

PS C:\> $ContosoBUVolume10 = Get-WssBackupVolume -AllVolumes
PS C:\> $ContosoBUConfig10 = Get-WssBackupConfiguration -Volume $ContosoBUVolume10[3]
PS C:\> Add-WssBackupConfiguration -FileSpec $ContosoBUConfig10 -Volume $ContosoBUVolume10[5]

Get-WssBackupConfiguration

New-WssBackupConfiguration

Remove-WssBackupConfiguration