You can use tags to mark Cloud Backup clients. This lets you group clients that serve the same purpose, which simplifies searching and resource aggregation. This topic describes how to set tags for ECS File Backup and Local File Backup clients.
Preparations
You have granted the required permissions and installed the ECS File Backup client. For more information, see Prerequisites.
Background information
You can set tags for backup clients to classify and manage them. These tags are associated with the Cloud Backup client and are separate from the tags of the ECS instance. For example, you can set a tag such as project:a to group clients by project or department. This helps you quickly find and manage specific clients during maintenance.
Usage notes
-
A tag is a key-value pair.
-
Each tag key must be unique for a resource.
If you add a tag with a key that already exists for the resource, the new value overwrites the old value. For example, if a client has the tag
company:aand you add the tagcompany:b, the original tag is replaced bycompany:b. -
Tags are region-specific. For example, a tag created in the China (Hangzhou) region is not visible in the China (Shanghai) region.
Precautions
Note the following limits for tags:
|
Limits |
Limit |
|
Maximum key length |
128 characters |
|
Maximum value length |
128 characters |
|
Maximum number of custom tags for a single resource |
20 |
|
Key Value |
|
|
Value constraints |
Cannot contain |
Set tags
You can set tags for ECS File Backup and Local File Backup clients on the details page of the protected resource. For Local File Backup, you can also set tags for a client on the Local File Data Source tab.
ECS File Backup
Log on to the Cloud Backup console.
-
In the navigation pane on the left, choose .
-
In the upper-left corner of the top menu bar, select a region.
-
Click the name of the target ECS instance to go to the details page of the protected resource. In the title of the Client Information area, click the
icon. -
In the Client Tags dialog box that appears, click Edit.
-
In the Key and Value text boxes, enter a key-value pair and click Save.
To set multiple tags, click Add a Row to add a new tag.
Local File Backup
To set tags for a Local File Backup client, go to the details page of the protected resource and click the tag icon in the title of the Client Information area. Alternatively, on the Local File Backup page, go to the Local File Data Source tab and click the tag icon in the Tag column.
Search for resources by tag
On the ECS File Backup page, click Return to Old Version to switch to the classic console. On the ECS Instance List tab, set the search condition to Client Tag, enter the tag information, and click Search.
-
To search by a single key:
aaa -
To search by a single key-value pair:
aaa@bbb -
To search by multiple key-value pairs:
aaa@bbb,ccc@ddd
Remove tags
If you no longer need a tag, you can remove it from the target client.
Log on to the Cloud Backup console.
-
In the navigation pane on the left, choose .
-
In the upper-left corner of the top menu bar, select a region.
-
Click the name of the target ECS instance to go to the details page of the protected resource. In the title of the Client Information area, click the
icon. -
In the Client Tags dialog box that appears, click Edit.
-
Click the
icon next to the tag you want to remove, and then click Save.