共用方式為


BackupSchedule Class

Definition

Description of a backup schedule. Describes how often should be the backup performed and what should be the retention policy.

public class BackupSchedule
type BackupSchedule = class
Public Class BackupSchedule
Inheritance
BackupSchedule

Constructors

BackupSchedule()

Initializes a new instance of the BackupSchedule class.

BackupSchedule(Int32, FrequencyUnit, Boolean, Int32, Nullable<DateTime>, Nullable<DateTime>)

Initializes a new instance of the BackupSchedule class.

Properties

FrequencyInterval

Gets or sets how often the backup should be executed (e.g. for weekly backup, this should be set to 7 and FrequencyUnit should be set to Day)

FrequencyUnit

Gets or sets the unit of time for how often the backup should be executed (e.g. for weekly backup, this should be set to Day and FrequencyInterval should be set to 7). Possible values include: 'Day', 'Hour'

KeepAtLeastOneBackup

Gets or sets true if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise.

LastExecutionTime

Gets last time when this schedule was triggered.

RetentionPeriodInDays

Gets or sets after how many days backups should be deleted.

StartTime

Gets or sets when the schedule should start working.

Methods

Validate()

Validate the object.

Applies to