New-WssBackupTarget

New-WssBackupTarget

Creates a backup target from a backup disk.

Sintaxis

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

Descripción detallada

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

Parámetros

-Disk<BackupDisk>

Specifies the backup disk that stores backups.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Label<String>

Specifies the label for the backup storage location.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

false

¿Posición?

3

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.BackupTarget

    This cmdlet generates the backup target.

Ejemplos

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

Temas relacionados

Add-WssBackupTarget

Get-WssBackupTarget

Remove-WssBackupTarget