Skip to content

Latest commit

 

History

History
106 lines (75 loc) · 2.8 KB

File metadata and controls

106 lines (75 loc) · 2.8 KB
external help file Module Name online version schema
WSBackup_Cmdlets.xml
WindowsServerBackup
2.0.0

Set-WBVssBackupOption

SYNOPSIS

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

SYNTAX

Set-WBVssBackupOption [-Policy] <WBPolicy> [-VssCopyBackup] [-VssFullBackup]

DESCRIPTION

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 Windows Server 2012 Backup cmdlets, you must be a member of the Administrators group or Backup Operators group.

EXAMPLES

Example 1: Set the VSS backup policy

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

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.

PARAMETERS

-Policy

Specifies the WBPolicy object to update.

Type: WBPolicy
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-VssCopyBackup

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-VssFullBackup

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

WBPolicy

The Set-WBVssBackupOptions cmdlet queries the specified WBPolicy object.

OUTPUTS

None

None

NOTES

  • 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.

RELATED LINKS

Get-WBVssBackupOption