Skip to content

MigrateTaskProps

Properties for defining a MigrateTask.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rds-migratetask

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkrds"
&alicloudroscdkrds.MigrateTaskProps {
    BackupMode: interface{},
    DbInstanceId: interface{},
    DbName: interface{},
    IsOnlineDb: interface{},
    CheckDbMode: interface{},
    OssObjectPositions: interface{},
    OssUrls: interface{},
}

Properties

Name Type Description
BackupMode interface{} Property backupMode: The type of the migration task.
DbInstanceId interface{} Property dbInstanceId: The ID of the instance.
DbName interface{} Property dbName: The name of the database that you want to restore.
IsOnlineDb interface{} Property isOnlineDb: Specifies whether to bring the restored database online for user access.
CheckDbMode interface{} Property checkDbMode: The consistency check method of the database.
OssObjectPositions interface{} Property ossObjectPositions: The information of the backup file in the OSS bucket.
OssUrls interface{} Property ossUrls: The shared URL of the backup file in the OSS bucket.

BackupModeRequired

BackupMode interface{}
  • Type: interface{}

Property backupMode: The type of the migration task.

Valid values: FULL: specifies that full backup files are used to restore data. UPDF: specifies that incremental backup files or log files are used to restore incremental data.


DbInstanceIdRequired

DbInstanceId interface{}
  • Type: interface{}

Property dbInstanceId: The ID of the instance.


DbNameRequired

DbName interface{}
  • Type: interface{}

Property dbName: The name of the database that you want to restore.


IsOnlineDbRequired

IsOnlineDb interface{}
  • Type: interface{}

Property isOnlineDb: Specifies whether to bring the restored database online for user access.

Note The value for SQL Server 2008 R2 is fixed to True.


CheckDbModeOptional

CheckDbMode interface{}
  • Type: interface{}

Property checkDbMode: The consistency check method of the database.

Valid values: SyncExecuteDBCheck: synchronous database check AsyncExecuteDBCheck: asynchronous database check Default value: AsyncExecuteDBCheck (compatible with SQL Server 2008 R2). Note When IsOnlineDB is set to True, this value is valid.


OssObjectPositionsOptional

OssObjectPositions interface{}
  • Type: interface{}

Property ossObjectPositions: The information of the backup file in the OSS bucket.

The values consist of three parts that are separated by colons (:): The endpoint of the OSS bucket: oss-ap-southeast-1.aliyuncs.com. The name of the OSS bucket: rdsmssqlsingapore. The key of the backup file in the OSS bucket: autotest_2008R2_TestMigration_FULL.bak. Note This parameter is optional for instances that run SQL Server 2008 R2. This parameter is required for instances that run a database engine later than SQL Server 2008 R2.


OssUrlsOptional

OssUrls interface{}
  • Type: interface{}

Property ossUrls: The shared URL of the backup file in the OSS bucket.

The URL must be encoded. If you specify multiple URLs, separate them with vertical bars (|) and then encode them. Note This parameter must be entered for instances that run SQL Server 2008 R2.