published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
备份是数据库的重要运行时文件,基于备份文件,数据库能够实现容灾、恢复等功能。云数据库 MySQL 版提供了数据备份和日志备份两种备份能力:通过数据备份可将数据库恢复至某个备份集,通过日志备份可将数据库恢复至指定时间点。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const rdsmysqlbackupDemo = new bytepluscc.rdsmysql.Backup("rdsmysqlbackupDemo", {
instanceId: "mysql-9e2c59****",
backupMethod: "Logical",
backupMetas: [{
database: "test",
tables: [],
}],
});
import pulumi
import pulumi_bytepluscc as bytepluscc
rdsmysqlbackup_demo = bytepluscc.rdsmysql.Backup("rdsmysqlbackupDemo",
instance_id="mysql-9e2c59****",
backup_method="Logical",
backup_metas=[{
"database": "test",
"tables": [],
}])
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/rdsmysql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rdsmysql.NewBackup(ctx, "rdsmysqlbackupDemo", &rdsmysql.BackupArgs{
InstanceId: pulumi.String("mysql-9e2c59****"),
BackupMethod: pulumi.String("Logical"),
BackupMetas: rdsmysql.BackupBackupMetaArray{
&rdsmysql.BackupBackupMetaArgs{
Database: pulumi.String("test"),
Tables: pulumi.StringArray{},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var rdsmysqlbackupDemo = new Bytepluscc.Rdsmysql.Backup("rdsmysqlbackupDemo", new()
{
InstanceId = "mysql-9e2c59****",
BackupMethod = "Logical",
BackupMetas = new[]
{
new Bytepluscc.Rdsmysql.Inputs.BackupBackupMetaArgs
{
Database = "test",
Tables = new() { },
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.rdsmysql.Backup;
import com.byteplus.bytepluscc.rdsmysql.BackupArgs;
import com.pulumi.bytepluscc.rdsmysql.inputs.BackupBackupMetaArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var rdsmysqlbackupDemo = new Backup("rdsmysqlbackupDemo", BackupArgs.builder()
.instanceId("mysql-9e2c59****")
.backupMethod("Logical")
.backupMetas(BackupBackupMetaArgs.builder()
.database("test")
.tables()
.build())
.build());
}
}
resources:
rdsmysqlbackupDemo:
type: bytepluscc:rdsmysql:Backup
properties:
instanceId: mysql-9e2c59****
backupMethod: Logical
backupMetas:
- database: test
tables: []
Create Backup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Backup(name: string, args: BackupArgs, opts?: CustomResourceOptions);@overload
def Backup(resource_name: str,
args: BackupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Backup(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
backup_metas: Optional[Sequence[BackupBackupMetaArgs]] = None,
backup_method: Optional[str] = None,
backup_type: Optional[str] = None)func NewBackup(ctx *Context, name string, args BackupArgs, opts ...ResourceOption) (*Backup, error)public Backup(string name, BackupArgs args, CustomResourceOptions? opts = null)
public Backup(String name, BackupArgs args)
public Backup(String name, BackupArgs args, CustomResourceOptions options)
type: bytepluscc:rdsmysql:Backup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BackupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BackupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var backupResource = new Bytepluscc.Rdsmysql.Backup("backupResource", new()
{
InstanceId = "string",
BackupMetas = new[]
{
new Bytepluscc.Rdsmysql.Inputs.BackupBackupMetaArgs
{
Database = "string",
Tables = new[]
{
"string",
},
},
},
BackupMethod = "string",
BackupType = "string",
});
example, err := rdsmysql.NewBackup(ctx, "backupResource", &rdsmysql.BackupArgs{
InstanceId: pulumi.String("string"),
BackupMetas: rdsmysql.BackupBackupMetaArray{
&rdsmysql.BackupBackupMetaArgs{
Database: pulumi.String("string"),
Tables: pulumi.StringArray{
pulumi.String("string"),
},
},
},
BackupMethod: pulumi.String("string"),
BackupType: pulumi.String("string"),
})
var backupResource = new Backup("backupResource", BackupArgs.builder()
.instanceId("string")
.backupMetas(BackupBackupMetaArgs.builder()
.database("string")
.tables("string")
.build())
.backupMethod("string")
.backupType("string")
.build());
backup_resource = bytepluscc.rdsmysql.Backup("backupResource",
instance_id="string",
backup_metas=[{
"database": "string",
"tables": ["string"],
}],
backup_method="string",
backup_type="string")
const backupResource = new bytepluscc.rdsmysql.Backup("backupResource", {
instanceId: "string",
backupMetas: [{
database: "string",
tables: ["string"],
}],
backupMethod: "string",
backupType: "string",
});
type: bytepluscc:rdsmysql:Backup
properties:
backupMetas:
- database: string
tables:
- string
backupMethod: string
backupType: string
instanceId: string
Backup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Backup resource accepts the following input properties:
- Instance
Id string - 实例 ID。
- Backup
Metas List<Byteplus.Backup Backup Meta> - Backup
Method string - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- Backup
Type string - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
- Instance
Id string - 实例 ID。
- Backup
Metas []BackupBackup Meta Args - Backup
Method string - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- Backup
Type string - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
- instance
Id String - 实例 ID。
- backup
Metas List<BackupBackup Meta> - backup
Method String - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- backup
Type String - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
- instance
Id string - 实例 ID。
- backup
Metas BackupBackup Meta[] - backup
Method string - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- backup
Type string - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
- instance_
id str - 实例 ID。
- backup_
metas Sequence[BackupBackup Meta Args] - backup_
method str - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- backup_
type str - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
- instance
Id String - 实例 ID。
- backup
Metas List<Property Map> - backup
Method String - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- backup
Type String - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
Outputs
All input properties are implicitly available as output properties. Additionally, the Backup resource produces the following output properties:
- Backup
End stringTime - 备份创建结束时间(UTC)。
- Backup
File stringName - 备份文件名。
- Backup
File intSize - 备份文件大小,单位为字节。
- Backup
Id string - 备份 ID。
- Backup
Name string - 备份的名称。
- Backup
Region string - 备份所在区域。
- Backup
Start stringTime - 备份创建开始时间(UTC)。
- Backup
Status string - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- Consistent
Time string - 一致性时间点。
- Create
Type string - 备份创建者,取值:System(系统)、User(用户)。
- Db
Engine stringVersion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- Db
Table List<Byteplus.Infos Backup Db Table Info> - Download
Status string - 下载状态。
- Engine
Type string - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- Error
Message string - 备份失败的错误信息。
- Expired
Time string - 备份过期时间(UTC)。
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Encrypted bool - 是否加密。
- Is
Expired bool - 是否已过期。
- Backup
End stringTime - 备份创建结束时间(UTC)。
- Backup
File stringName - 备份文件名。
- Backup
File intSize - 备份文件大小,单位为字节。
- Backup
Id string - 备份 ID。
- Backup
Name string - 备份的名称。
- Backup
Region string - 备份所在区域。
- Backup
Start stringTime - 备份创建开始时间(UTC)。
- Backup
Status string - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- Consistent
Time string - 一致性时间点。
- Create
Type string - 备份创建者,取值:System(系统)、User(用户)。
- Db
Engine stringVersion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- Db
Table []BackupInfos Db Table Info - Download
Status string - 下载状态。
- Engine
Type string - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- Error
Message string - 备份失败的错误信息。
- Expired
Time string - 备份过期时间(UTC)。
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Encrypted bool - 是否加密。
- Is
Expired bool - 是否已过期。
- backup
End StringTime - 备份创建结束时间(UTC)。
- backup
File StringName - 备份文件名。
- backup
File IntegerSize - 备份文件大小,单位为字节。
- backup
Id String - 备份 ID。
- backup
Name String - 备份的名称。
- backup
Region String - 备份所在区域。
- backup
Start StringTime - 备份创建开始时间(UTC)。
- backup
Status String - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- consistent
Time String - 一致性时间点。
- create
Type String - 备份创建者,取值:System(系统)、User(用户)。
- db
Engine StringVersion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- db
Table List<BackupInfos Db Table Info> - download
Status String - 下载状态。
- engine
Type String - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- error
Message String - 备份失败的错误信息。
- expired
Time String - 备份过期时间(UTC)。
- id String
- The provider-assigned unique ID for this managed resource.
- is
Encrypted Boolean - 是否加密。
- is
Expired Boolean - 是否已过期。
- backup
End stringTime - 备份创建结束时间(UTC)。
- backup
File stringName - 备份文件名。
- backup
File numberSize - 备份文件大小,单位为字节。
- backup
Id string - 备份 ID。
- backup
Name string - 备份的名称。
- backup
Region string - 备份所在区域。
- backup
Start stringTime - 备份创建开始时间(UTC)。
- backup
Status string - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- consistent
Time string - 一致性时间点。
- create
Type string - 备份创建者,取值:System(系统)、User(用户)。
- db
Engine stringVersion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- db
Table BackupInfos Db Table Info[] - download
Status string - 下载状态。
- engine
Type string - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- error
Message string - 备份失败的错误信息。
- expired
Time string - 备份过期时间(UTC)。
- id string
- The provider-assigned unique ID for this managed resource.
- is
Encrypted boolean - 是否加密。
- is
Expired boolean - 是否已过期。
- backup_
end_ strtime - 备份创建结束时间(UTC)。
- backup_
file_ strname - 备份文件名。
- backup_
file_ intsize - 备份文件大小,单位为字节。
- backup_
id str - 备份 ID。
- backup_
name str - 备份的名称。
- backup_
region str - 备份所在区域。
- backup_
start_ strtime - 备份创建开始时间(UTC)。
- backup_
status str - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- consistent_
time str - 一致性时间点。
- create_
type str - 备份创建者,取值:System(系统)、User(用户)。
- db_
engine_ strversion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- db_
table_ Sequence[Backupinfos Db Table Info] - download_
status str - 下载状态。
- engine_
type str - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- error_
message str - 备份失败的错误信息。
- expired_
time str - 备份过期时间(UTC)。
- id str
- The provider-assigned unique ID for this managed resource.
- is_
encrypted bool - 是否加密。
- is_
expired bool - 是否已过期。
- backup
End StringTime - 备份创建结束时间(UTC)。
- backup
File StringName - 备份文件名。
- backup
File NumberSize - 备份文件大小,单位为字节。
- backup
Id String - 备份 ID。
- backup
Name String - 备份的名称。
- backup
Region String - 备份所在区域。
- backup
Start StringTime - 备份创建开始时间(UTC)。
- backup
Status String - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- consistent
Time String - 一致性时间点。
- create
Type String - 备份创建者,取值:System(系统)、User(用户)。
- db
Engine StringVersion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- db
Table List<Property Map>Infos - download
Status String - 下载状态。
- engine
Type String - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- error
Message String - 备份失败的错误信息。
- expired
Time String - 备份过期时间(UTC)。
- id String
- The provider-assigned unique ID for this managed resource.
- is
Encrypted Boolean - 是否加密。
- is
Expired Boolean - 是否已过期。
Look up Existing Backup Resource
Get an existing Backup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BackupState, opts?: CustomResourceOptions): Backup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_end_time: Optional[str] = None,
backup_file_name: Optional[str] = None,
backup_file_size: Optional[int] = None,
backup_id: Optional[str] = None,
backup_metas: Optional[Sequence[BackupBackupMetaArgs]] = None,
backup_method: Optional[str] = None,
backup_name: Optional[str] = None,
backup_region: Optional[str] = None,
backup_start_time: Optional[str] = None,
backup_status: Optional[str] = None,
backup_type: Optional[str] = None,
consistent_time: Optional[str] = None,
create_type: Optional[str] = None,
db_engine_version: Optional[str] = None,
db_table_infos: Optional[Sequence[BackupDbTableInfoArgs]] = None,
download_status: Optional[str] = None,
engine_type: Optional[str] = None,
error_message: Optional[str] = None,
expired_time: Optional[str] = None,
instance_id: Optional[str] = None,
is_encrypted: Optional[bool] = None,
is_expired: Optional[bool] = None) -> Backupfunc GetBackup(ctx *Context, name string, id IDInput, state *BackupState, opts ...ResourceOption) (*Backup, error)public static Backup Get(string name, Input<string> id, BackupState? state, CustomResourceOptions? opts = null)public static Backup get(String name, Output<String> id, BackupState state, CustomResourceOptions options)resources: _: type: bytepluscc:rdsmysql:Backup get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Backup
End stringTime - 备份创建结束时间(UTC)。
- Backup
File stringName - 备份文件名。
- Backup
File intSize - 备份文件大小,单位为字节。
- Backup
Id string - 备份 ID。
- Backup
Metas List<Byteplus.Backup Backup Meta> - Backup
Method string - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- Backup
Name string - 备份的名称。
- Backup
Region string - 备份所在区域。
- Backup
Start stringTime - 备份创建开始时间(UTC)。
- Backup
Status string - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- Backup
Type string - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
- Consistent
Time string - 一致性时间点。
- Create
Type string - 备份创建者,取值:System(系统)、User(用户)。
- Db
Engine stringVersion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- Db
Table List<Byteplus.Infos Backup Db Table Info> - Download
Status string - 下载状态。
- Engine
Type string - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- Error
Message string - 备份失败的错误信息。
- Expired
Time string - 备份过期时间(UTC)。
- Instance
Id string - 实例 ID。
- Is
Encrypted bool - 是否加密。
- Is
Expired bool - 是否已过期。
- Backup
End stringTime - 备份创建结束时间(UTC)。
- Backup
File stringName - 备份文件名。
- Backup
File intSize - 备份文件大小,单位为字节。
- Backup
Id string - 备份 ID。
- Backup
Metas []BackupBackup Meta Args - Backup
Method string - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- Backup
Name string - 备份的名称。
- Backup
Region string - 备份所在区域。
- Backup
Start stringTime - 备份创建开始时间(UTC)。
- Backup
Status string - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- Backup
Type string - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
- Consistent
Time string - 一致性时间点。
- Create
Type string - 备份创建者,取值:System(系统)、User(用户)。
- Db
Engine stringVersion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- Db
Table []BackupInfos Db Table Info Args - Download
Status string - 下载状态。
- Engine
Type string - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- Error
Message string - 备份失败的错误信息。
- Expired
Time string - 备份过期时间(UTC)。
- Instance
Id string - 实例 ID。
- Is
Encrypted bool - 是否加密。
- Is
Expired bool - 是否已过期。
- backup
End StringTime - 备份创建结束时间(UTC)。
- backup
File StringName - 备份文件名。
- backup
File IntegerSize - 备份文件大小,单位为字节。
- backup
Id String - 备份 ID。
- backup
Metas List<BackupBackup Meta> - backup
Method String - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- backup
Name String - 备份的名称。
- backup
Region String - 备份所在区域。
- backup
Start StringTime - 备份创建开始时间(UTC)。
- backup
Status String - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- backup
Type String - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
- consistent
Time String - 一致性时间点。
- create
Type String - 备份创建者,取值:System(系统)、User(用户)。
- db
Engine StringVersion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- db
Table List<BackupInfos Db Table Info> - download
Status String - 下载状态。
- engine
Type String - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- error
Message String - 备份失败的错误信息。
- expired
Time String - 备份过期时间(UTC)。
- instance
Id String - 实例 ID。
- is
Encrypted Boolean - 是否加密。
- is
Expired Boolean - 是否已过期。
- backup
End stringTime - 备份创建结束时间(UTC)。
- backup
File stringName - 备份文件名。
- backup
File numberSize - 备份文件大小,单位为字节。
- backup
Id string - 备份 ID。
- backup
Metas BackupBackup Meta[] - backup
Method string - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- backup
Name string - 备份的名称。
- backup
Region string - 备份所在区域。
- backup
Start stringTime - 备份创建开始时间(UTC)。
- backup
Status string - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- backup
Type string - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
- consistent
Time string - 一致性时间点。
- create
Type string - 备份创建者,取值:System(系统)、User(用户)。
- db
Engine stringVersion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- db
Table BackupInfos Db Table Info[] - download
Status string - 下载状态。
- engine
Type string - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- error
Message string - 备份失败的错误信息。
- expired
Time string - 备份过期时间(UTC)。
- instance
Id string - 实例 ID。
- is
Encrypted boolean - 是否加密。
- is
Expired boolean - 是否已过期。
- backup_
end_ strtime - 备份创建结束时间(UTC)。
- backup_
file_ strname - 备份文件名。
- backup_
file_ intsize - 备份文件大小,单位为字节。
- backup_
id str - 备份 ID。
- backup_
metas Sequence[BackupBackup Meta Args] - backup_
method str - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- backup_
name str - 备份的名称。
- backup_
region str - 备份所在区域。
- backup_
start_ strtime - 备份创建开始时间(UTC)。
- backup_
status str - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- backup_
type str - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
- consistent_
time str - 一致性时间点。
- create_
type str - 备份创建者,取值:System(系统)、User(用户)。
- db_
engine_ strversion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- db_
table_ Sequence[Backupinfos Db Table Info Args] - download_
status str - 下载状态。
- engine_
type str - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- error_
message str - 备份失败的错误信息。
- expired_
time str - 备份过期时间(UTC)。
- instance_
id str - 实例 ID。
- is_
encrypted bool - 是否加密。
- is_
expired bool - 是否已过期。
- backup
End StringTime - 备份创建结束时间(UTC)。
- backup
File StringName - 备份文件名。
- backup
File NumberSize - 备份文件大小,单位为字节。
- backup
Id String - 备份 ID。
- backup
Metas List<Property Map> - backup
Method String - 备份类型,取值:Physical(物理备份)、Logical(逻辑备份)、Snapshot(快照备份)。
- backup
Name String - 备份的名称。
- backup
Region String - 备份所在区域。
- backup
Start StringTime - 备份创建开始时间(UTC)。
- backup
Status String - 备份状态,取值:Success(成功)、Failed(失败)、Running(执行中)。
- backup
Type String - 备份方式,取值:Full(全量/库表备)、Increment(增量备份)、DumpAll(全库备份)。
- consistent
Time String - 一致性时间点。
- create
Type String - 备份创建者,取值:System(系统)、User(用户)。
- db
Engine StringVersion - 兼容版本。取值:MySQL57:MySQL 5.7 版本。MySQL80:MySQL 8.0 版本。
- db
Table List<Property Map>Infos - download
Status String - 下载状态。
- engine
Type String - 数据库引擎类型。取值:InnoDB:InnoDB 引擎。RocksDB:RocksDB 引擎。
- error
Message String - 备份失败的错误信息。
- expired
Time String - 备份过期时间(UTC)。
- instance
Id String - 实例 ID。
- is
Encrypted Boolean - 是否加密。
- is
Expired Boolean - 是否已过期。
Supporting Types
BackupBackupMeta, BackupBackupMetaArgs
BackupDbTableInfo, BackupDbTableInfoArgs
Import
$ pulumi import bytepluscc:rdsmysql/backup:Backup example "instance_id|backup_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Mar 9, 2026 by Byteplus
