Skip to content

MigrateTaskProps

Properties for defining a MigrateTask.

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

Initializer

using AlibabaCloud.SDK.ROS.CDK.Rds;
new MigrateTaskProps {
    object BackupMode,
    object DbInstanceId,
    object DbName,
    object IsOnlineDb,
    object CheckDbMode = null,
    object OssObjectPositions = null,
    object OssUrls = null
};

Properties

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

BackupModeRequired

public object BackupMode { get; set; }
  • Type: object

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

public object DbInstanceId { get; set; }
  • Type: object

Property dbInstanceId: The ID of the instance.


DbNameRequired

public object DbName { get; set; }
  • Type: object

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


IsOnlineDbRequired

public object IsOnlineDb { get; set; }
  • Type: object

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

public object CheckDbMode { get; set; }
  • Type: object

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

public object OssObjectPositions { get; set; }
  • Type: object

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

public object OssUrls { get; set; }
  • Type: object

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.