Skip to content

DbPlanProps

Properties for defining a DbPlan.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-hbr-dbplan

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkhbr"
&alicloudroscdkhbr.DbPlanProps {
    DbPlanName: interface{},
    HostUuid: interface{},
    SourceType: interface{},
    VaultId: interface{},
    ContinuousPlan: interface{},
    CumulativePlan: interface{},
    FullPlan: interface{},
    IncPlan: interface{},
    InstanceUuid: interface{},
    LogPlan: interface{},
    MaxRateLimit: interface{},
    MaxRetrySeconds: interface{},
    Options: interface{},
    Source: interface{},
}

Properties

Name Type Description
DbPlanName interface{} Property dbPlanName: Display name of the backup plan.
HostUuid interface{} Property hostUuid: Uuid of the host of the database instance.
SourceType interface{} Property sourceType: Database type, allowed value: MYSQL, ORACLE, MSSQL.
VaultId interface{} Property vaultId: Vault ID to create backup plan, the backup data will be stored to the vault.
ContinuousPlan interface{} Property continuousPlan: Continuous backup plan schedule.
CumulativePlan interface{} Property cumulativePlan: Cumulative plan schedule, only for mssql.
FullPlan interface{} Property fullPlan: Full backup plan schedule.
IncPlan interface{} Property incPlan: Incremental backup plan schedule.
InstanceUuid interface{} Property instanceUuid: Uuid of database instance.
LogPlan interface{} Property logPlan: Log backup plan schedule.More details see FullPlan.
MaxRateLimit interface{} Property maxRateLimit: Max rate limit for backup job,.
MaxRetrySeconds interface{} Property maxRetrySeconds: Max retry seconds on network failure.
Options interface{} Property options: Backup options in json format, different for each type of database.
Source interface{} Property source: Which database instance or database will be backup.

DbPlanNameRequired

DbPlanName interface{}
  • Type: interface{}

Property dbPlanName: Display name of the backup plan.


HostUuidRequired

HostUuid interface{}
  • Type: interface{}

Property hostUuid: Uuid of the host of the database instance.


SourceTypeRequired

SourceType interface{}
  • Type: interface{}

Property sourceType: Database type, allowed value: MYSQL, ORACLE, MSSQL.


VaultIdRequired

VaultId interface{}
  • Type: interface{}

Property vaultId: Vault ID to create backup plan, the backup data will be stored to the vault.


ContinuousPlanOptional

ContinuousPlan interface{}
  • Type: interface{}

Property continuousPlan: Continuous backup plan schedule.

Use { "type": "continuous" }.


CumulativePlanOptional

CumulativePlan interface{}
  • Type: interface{}

Property cumulativePlan: Cumulative plan schedule, only for mssql.

More details see FullPlan.


FullPlanOptional

FullPlan interface{}
  • Type: interface{}

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.


IncPlanOptional

IncPlan interface{}
  • Type: interface{}

Property incPlan: Incremental backup plan schedule.

Only for mysql and oracle. More details see FullPlan.


InstanceUuidOptional

InstanceUuid interface{}
  • Type: interface{}

Property instanceUuid: Uuid of database instance.


LogPlanOptional

LogPlan interface{}
  • Type: interface{}

Property logPlan: Log backup plan schedule.More details see FullPlan.


MaxRateLimitOptional

MaxRateLimit interface{}
  • Type: interface{}

Property maxRateLimit: Max rate limit for backup job,.


MaxRetrySecondsOptional

MaxRetrySeconds interface{}
  • Type: interface{}

Property maxRetrySeconds: Max retry seconds on network failure.


OptionsOptional

Options interface{}
  • Type: interface{}

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}.


SourceOptional

Source interface{}
  • Type: interface{}

Property source: Which database instance or database will be backup.