BackupSchedule Class

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

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
BackupSchedule

Constructor

BackupSchedule(*, frequency_interval: int = 7, frequency_unit: Union[str, azure.mgmt.web.v2016_08_01.models._web_site_management_client_enums.FrequencyUnit] = 'Day', keep_at_least_one_backup: bool = True, retention_period_in_days: int = 30, start_time: Optional[datetime.datetime] = None, **kwargs)

Parameters

frequency_interval
int
Required

Required. 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).

frequency_unit
str or FrequencyUnit
Required

Required. 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". Default value: "Day".

keep_at_least_one_backup
bool
Required

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

retention_period_in_days
int
Required

Required. After how many days backups should be deleted.

start_time
datetime
Required

When the schedule should start working.

Variables

last_execution_time
datetime

Last time when this schedule was triggered.