DbPlanProps
Properties for defining a DbPlan
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-hbr-dbplan
Initializer
using AlibabaCloud.SDK.ROS.CDK.Hbr;
new DbPlanProps {
object DbPlanName,
object HostUuid,
object SourceType,
object VaultId,
object ContinuousPlan = null,
object CumulativePlan = null,
object FullPlan = null,
object IncPlan = null,
object InstanceUuid = null,
object LogPlan = null,
object MaxRateLimit = null,
object MaxRetrySeconds = null,
object Options = null,
object Source = null
};
Properties
Name | Type | Description |
---|---|---|
DbPlanName |
object |
Property dbPlanName: Display name of the backup plan. |
HostUuid |
object |
Property hostUuid: Uuid of the host of the database instance. |
SourceType |
object |
Property sourceType: Database type, allowed value: MYSQL, ORACLE, MSSQL. |
VaultId |
object |
Property vaultId: Vault ID to create backup plan, the backup data will be stored to the vault. |
ContinuousPlan |
object |
Property continuousPlan: Continuous backup plan schedule. |
CumulativePlan |
object |
Property cumulativePlan: Cumulative plan schedule, only for mssql. |
FullPlan |
object |
Property fullPlan: Full backup plan schedule. |
IncPlan |
object |
Property incPlan: Incremental backup plan schedule. |
InstanceUuid |
object |
Property instanceUuid: Uuid of database instance. |
LogPlan |
object |
Property logPlan: Log backup plan schedule.More details see FullPlan. |
MaxRateLimit |
object |
Property maxRateLimit: Max rate limit for backup job,. |
MaxRetrySeconds |
object |
Property maxRetrySeconds: Max retry seconds on network failure. |
Options |
object |
Property options: Backup options in json format, different for each type of database. |
Source |
object |
Property source: Which database instance or database will be backup. |
DbPlanName
Required
public object DbPlanName { get; set; }
- Type: object
Property dbPlanName: Display name of the backup plan.
HostUuid
Required
public object HostUuid { get; set; }
- Type: object
Property hostUuid: Uuid of the host of the database instance.
SourceType
Required
public object SourceType { get; set; }
- Type: object
Property sourceType: Database type, allowed value: MYSQL, ORACLE, MSSQL.
VaultId
Required
public object VaultId { get; set; }
- Type: object
Property vaultId: Vault ID to create backup plan, the backup data will be stored to the vault.
ContinuousPlan
Optional
public object ContinuousPlan { get; set; }
- Type: object
Property continuousPlan: Continuous backup plan schedule.
Use { "type": "continuous" }.
CumulativePlan
Optional
public object CumulativePlan { get; set; }
- Type: object
Property cumulativePlan: Cumulative plan schedule, only for mssql.
More details see FullPlan.
FullPlan
Optional
public object FullPlan { get; set; }
- Type: object
Property fullPlan: Full backup plan schedule.
daily: {"type": "daily", "start": "00:00:00", "interval": 3}, weekly {"type":"weekly","start": "03:00:00","days": [1,2,3,4,5],"interval": 1}, days can be 0 - 6, 0 means Sunday, and interval can be 1 - 52.
IncPlan
Optional
public object IncPlan { get; set; }
- Type: object
Property incPlan: Incremental backup plan schedule.
Only for mysql and oracle. More details see FullPlan.
InstanceUuid
Optional
public object InstanceUuid { get; set; }
- Type: object
Property instanceUuid: Uuid of database instance.
LogPlan
Optional
public object LogPlan { get; set; }
- Type: object
Property logPlan: Log backup plan schedule.More details see FullPlan.
MaxRateLimit
Optional
public object MaxRateLimit { get; set; }
- Type: object
Property maxRateLimit: Max rate limit for backup job,.
MaxRetrySeconds
Optional
public object MaxRetrySeconds { get; set; }
- Type: object
Property maxRetrySeconds: Max retry seconds on network failure.
Options
Optional
public object Options { get; set; }
- Type: object
Property options: Backup options in json format, different for each type of database.
For Oracle, use {"channels":4,"compression":"lzop","offline_backup":false,"archivelog_reserve_hours":24,"custom_commands":""}, "channels" means numbers of concurrent theads, "archivelog_reserve_hours" means how long before the archive log will be deleted after backup job completed, other paramters should use the default vaule. For Mysql, use {"channels":4,"compression":"lzop","del_binlog":false}, "del_binlog" means whether the binlog will be deleted after backup completed, only take effect for log or continuous backup. For SQL Server, use {"channels":4,"verify":false,"compression":"lzop","backup_new_databases":false}.
Source
Optional
public object Source { get; set; }
- Type: object
Property source: Which database instance or database will be backup.