Condividi tramite


New-OBRetentionPolicy

Creates a new OBRetentionPolicy specifying the number of days that the backup needs to be retained.

Sintassi

Default (impostazione predefinita).

New-OBRetentionPolicy
    [[-RetentionDays] <<Long>]
    [-RetentionWeeklyPolicy]
    [-WeekDaysOfWeek]
    [[-WeekTimesOfDay] <List[timespan]>]
    [[-RetentionWeeks] <long>]
    [-RetentionMonthlyPolicy]

Descrizione

The New-OBRetentionPolicy creates a new OBRetentionPolicy object specifying the number of days to retain the backed up items.

To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.

Esempio

EXAMPLE 1

 New-OBRetentionPolicy -RetentionDays 30

This example creates a new retention policy.

Parametri

-RetentionDays

Specifies the number of days to retain the backup data. Retention days must be specified as either 7, 15, or 30. Other integers are not supported.

Proprietà dei parametri

Tipo:Long {7 | 15 | 30}
Valore predefinito:None
Supporta i caratteri jolly:False
DontShow:False

Set di parametri

(All)
Posizione:2
Obbligatorio:False
Valore dalla pipeline:False
Valore dalla pipeline in base al nome della proprietà:False
Valore dagli argomenti rimanenti:False

Input

None

Output

Microsoft.Internal.CloudBackup.Commands.OBRetentionPolicy

Specifies the number of days that the backup needs to be retained.