Updates a backup plan.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:UpdateBackupPlan |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PlanId |
string |
Yes |
The ID of the backup plan. |
plan-20211***735 |
| PlanName |
string |
No |
The name of the backup plan. |
planname |
| Schedule |
string |
No |
The backup policy. Use the
|
I|1602673264|P1D |
| Retention |
integer |
No |
The number of days to retain backups. The minimum value is 1. |
7 |
| Prefix |
string |
No |
This parameter is required only when SourceType is set to OSS. This parameter specifies the prefix of objects to back up. After you specify a prefix, only objects that match the prefix are backed up. |
oss-prefix |
| VaultId |
string |
No |
The ID of the backup repository. |
v-0006******q |
| Detail |
object |
No |
The details of the ECS instance backup. This is a JSON string.
|
{\"EnableFsFreeze\":true,\"appConsistent\":false,\"postScriptPath\":\"\",\"preScriptPath\":\"\",\"snapshotGroup\":true,\"timeoutInSeconds\":60} |
| SourceType |
string |
No |
The type of the data source. Valid values:
|
ECS_FILE |
| SpeedLimit |
string |
No |
This parameter is required only when SourceType is set to ECS_FILE. This parameter specifies traffic shaping for backups. Traffic shaping helps you control backup traffic during peak business hours to avoid affecting your services. The format is
|
0:24:5120 |
| Include |
string |
No |
This parameter is required only when SourceType is set to ECS_FILE. This parameter specifies the paths to the files to back up. All files in the specified paths are backed up. The value can be up to 255 characters in length. |
["/home/alice/*.pdf", "/home/bob/*.txt"] |
| Exclude |
string |
No |
This parameter is required only when SourceType is set to ECS_FILE. This parameter specifies the paths to the files to exclude from the backup. All files in the specified paths are not backed up. The value can be up to 255 characters in length. |
["/var", "/proc"] |
| Options |
string |
No |
This parameter is required only when SourceType is set to ECS_FILE. This parameter specifies whether to use Volume Shadow Copy Service (VSS) to define the backup path.
|
{"UseVSS":false} |
| UpdatePaths |
boolean |
No |
Specifies whether to update the backup paths if the Path parameter is empty.
|
false |
| Path |
array |
No |
The backup paths. |
|
|
string |
No |
The backup path. The value can be up to 65,536 characters in length. The following rules apply:
|
["/home"] |
|
| Rule |
array<object> |
No |
The rules of the backup plan. |
|
|
object |
No |
|||
| DestinationRetention |
integer |
No |
The number of days to retain the geo-redundant backup. |
7 |
| Schedule |
string |
No |
The backup policy. Use the I|{startTime}|{interval} format. This specifies that a backup job runs at a recurring interval. The {startTime} is when the backup starts. The {interval} is the time between jobs. HBR does not run overdue backup jobs. If the previous backup job is not finished, the next one does not start. For example, I|1631685600|P1D means the backup runs once a day, starting at 14:00:00 on September 15, 2021. startTime: The start time of the backup. This is a UNIX timestamp in seconds. interval: The time interval. Use the ISO 8601 standard. For example, PT1H specifies an interval of one hour. P1D specifies an interval of one day. |
I|1631685600|P1D |
| Disabled |
boolean |
No |
Specifies whether to disable the policy. |
false |
| Retention |
integer |
No |
The number of days to retain backups. The minimum value is 1. |
7 |
| DoCopy |
boolean |
No |
Specifies whether to enable geo-redundant replication. |
false |
| DestinationRegionId |
string |
No |
The ID of the destination region for the geo-redundant backup. |
cn-shanghai |
| RuleName |
string |
No |
The name of the policy. |
rule-test-name |
| BackupType |
string |
No |
The backup type. Set the value to COMPLETE. This indicates a full backup. |
COMPLETE |
| OtsDetail | OtsDetail |
No |
The details of the Tablestore instance. |
|
| KeepLatestSnapshots |
integer |
No |
Specifies whether to permanently retain the latest backup version.
|
1 |
| ChangeListPath |
string |
No |
The configuration for the incremental file synchronization list. (This parameter is required only for file synchronization.) |
{"dataSourceId": "ds-123456789", "path": "/changelist"} |
| Edition |
string |
No |
The edition. Valid values are BASIC and STANDARD. The default value is STANDARD. |
STANDARD |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return code. A value of 200 indicates that the request was successful. |
200 |
| Message |
string |
The message returned. If the request is successful, `successful` is returned. If the request fails, an error message is returned. |
successful |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.