Set-WBVssBackupOption

Set-WBVssBackupOption

Sets a value that determines the VSS setting in the backup policy.

Sintaxis

Parameter Set: Default
Set-WBVssBackupOption [-Policy] <WBPolicy> [[-VssCopyBackup]] [[-VssFullBackup]] [ <CommonParameters>]

Descripción detallada

The Set-WBVssBackupOptions cmdlet sets a value that determines whether the backups created through the WBPolicy object are Volume Shadow Copy Service (VSS) copy backups or VSS full backups.

Create VSS full backups if you are not using any other product to back up applications. This option updates the backup history of each file and deletes the application log files. Create VSS copy backups if you are using another product to back up applications that are on the volumes included in the backup. This option retains the application log files.

To use this cmdlet, you must be a member of the Administrators group or Backup Operators group.

Parámetros

-Policy<WBPolicy>

Specifies the WBPolicy object to update.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-VssCopyBackup

Indicates that the backups in the backup policy are VSS copy backups.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-VssFullBackup

Indicates that the backups in the backup policy are VSS full backups.

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.

  • WBPolicy

    The Set-WBVssBackupOptions cmdlet queries the specified WBPolicy object.

Salidas

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

  • None

Notas

  • The WBPolicy object must be in edit mode. To put the WBPolicy object in edit mode for a policy that you set as the scheduled backup policy, use the New-WBPolicy cmdlet with the Editable parameter. The New-WBPolicy cmdlet creates a new WBPolicy object that is already in edit mode.

Ejemplos

Example 1: Set the VSS backup policy

This example sets the backup policy to create backups that are VSS full backups.

The first command stores the result of the Get-WBPolicy cmdlet in the variable named $Policy.

The second command sets the VSS setting for the backup policy in the $Policy variable.

PS C:\> $Policy = Get-WBPolicy
PS C:\> Set-WBVssBackupOption -Policy $Policy -VssFullBackup

Temas relacionados

Get-WBVssBackupOptions