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 server.
- Inheritance
-
azure.mgmt.web._serialization.ModelBackupSchedule
Constructor
BackupSchedule(*, frequency_interval: int = 7, frequency_unit: str | _models.FrequencyUnit = 'Day', keep_at_least_one_backup: bool = True, retention_period_in_days: int = 30, start_time: datetime | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
frequency_interval
|
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). Default value: 7
|
frequency_unit
|
str or
FrequencyUnit
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). Known values are: "Day" and "Hour". Default value: Day
|
keep_at_least_one_backup
|
True if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise. Default value: True
|
retention_period_in_days
|
After how many days backups should be deleted. Default value: 30
|
start_time
|
When the schedule should start working. |
Variables
Name | Description |
---|---|
frequency_interval
|
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
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). Known values are: "Day" and "Hour". |
keep_at_least_one_backup
|
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
|
After how many days backups should be deleted. |
start_time
|
When the schedule should start working. |
last_execution_time
|
Last time when this schedule was triggered. |
Azure SDK for Python