BackupSchedule Class
Description of a backup schedule. Describes how often should be the backup performed and what should be the retention policy.
Constructor
BackupSchedule()
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
|
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
frequencyInterval
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.
frequencyInterval: Required[int]
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".
frequencyUnit: Required[str | FrequencyUnit]
keepAtLeastOneBackup
True if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise. Required.
keepAtLeastOneBackup: Required[bool]
lastExecutionTime
Last time when this schedule was triggered.
lastExecutionTime: str
retentionPeriodInDays
After how many days backups should be deleted. Required.
retentionPeriodInDays: Required[int]
startTime
When the schedule should start working.
startTime: str