New-WssBackupTarget

New-WssBackupTarget

Creates a backup target from a backup disk.

Syntax

Parameter Set: Disk
New-WssBackupTarget [-Disk] <BackupDisk> [[-Label] <String> ] [[-PreserveExistingBackups]] [ <CommonParameters>]

Detailed Description

The New-WssBackupTarget cmdlet creates a backup target from a backup disk. A backup target defines storage locations for backups.

Parameters

-Disk<BackupDisk>

Specifies the backup disk that stores backups.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Label<String>

Specifies the label for the backup storage location.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PreserveExistingBackups

Indicates that the cmdlet keeps existing backups on the disk in the BackupDisk parameter when the cmdlet adds a new backup to the disk.

Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

false

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: Create a backup target from a backup disk

This command creates a backup target labeled Backup Disk 1 from the second item, located in position 1, of the array that is stored in the $disks variable.

PS C:\> New-WssBackupTarget -Disk $disks[1] -Label "Backup Disk 1" -PreserveExistingBackups

Add-WssBackupTarget

Get-WssBackupTarget

Remove-WssBackupTarget