BackupSchedule Class
Description of a backup schedule. Describes how often should be the backup performed and what should be the retention policy.
Constructor
BackupSchedule(*args: Any, **kwargs: Any)
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). Required. |
|
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). Required. 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. Required. |
|
retention_period_in_days
|
After how many days backups should be deleted. Required. |
|
start_time
|
When the schedule should start working. |
|
last_execution_time
|
Last time when this schedule was triggered. |
Attributes
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). Required.
frequency_interval: int
frequency_unit
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). Required. Known values are: "Day" and "Hour".
frequency_unit: str | _models.FrequencyUnit
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. Required.
keep_at_least_one_backup: bool
last_execution_time
Last time when this schedule was triggered.
last_execution_time: datetime | None
retention_period_in_days
After how many days backups should be deleted. Required.
retention_period_in_days: int
start_time
When the schedule should start working.
start_time: datetime | None