dcloud rds backups restoreRestore to latest, to a timestamp, or to a labelled backup
Synopsis
dcloud rds backups restore id --recovery-target recoveryTarget [flags]Arguments
<id>Requiredstring
Also accepted as
--id. Constraints: 3-64 chars, /^(?!ewdoc-)[a-z0-9-]+$/
Flags
--recovery-targetRequiredenum
Selects which of the other fields apply
One of:
latest,time,label--target-identifierOptionalstring
Name of the new database the restore creates; a restore never overwrites its source
Constraints: 1-63 chars
--instance-classOptionalstring
Instance type of the new database, e.g. performance-2 (provider names deprecated); omitted: the source's
Constraints: min 1 chars
--topologyOptionalenum
single (the default) or cluster: three nodes, the class needs 8 GiB of memory or more
One of:
single,cluster--kms-key-idOptionalstring
KMS key for the new database's disks; null: the platform key; omitted: the source's
Constraints: uuid
May be null.
--publicly-accessibleOptionalboolean (--publicly-accessible / --no-publicly-accessible)
Whether the new database answers on the internet; omitted: the source's choice
--tagsOptionalmap of string
Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them).
Constraints: key=value
--recovery-target-timeOptionalstring
ISO time to restore to; must lie inside the recoverable window of backups list
Constraints: datetime
--recovery-target-labelOptionalstring
Label of the backup to restore, as backups list shows it (e.g. 20260826-030000F)
Constraints: 1-128 chars, /^[A-Za-z0-9_-]+$/
Example
dcloud rds backups restore id --recovery-target latestGenerated from the API description, the same one the API checks requests against and the CLI is built from.