Token导航 LogoToken导航TokenDH.com
开发执行命令clawhub未标认证来源可访问clear审计通过

alibabacloud-cloudbackup-ecs-file-backup-essential-editionalibabacloud cloudbackup ecs 文件备份精华版

Agent Skill

alibabacloud-cloudbackup-ecs-file-backup-essential-edition 用于辅助部署、云资源、容器和基础设施运维,适合在 OpenClaw 中需要检查配置、整理部署步骤或排查环境问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,568

周安装

183

GitHub Stars

公开资料未说明

下载量

1,479
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:alibabacloud-cloudbackup-ecs-file-backup-essential-edition(alibabacloud cloudbackup ecs 文件备份精华版)
来源仓库:https://github.com/sdk-team/alibabacloud-cloudbackup-ecs-file-backup-essential-edition
安装命令:
openclaw skills install alibabacloud-cloudbackup-ecs-file-backup-essential-edition
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install alibabacloud-cloudbackup-ecs-file-backup-essential-edition

简介

用于激活和管理阿里云 ECS 文件备份基础版服务。

  • 支持每日自动备份、30天恢复窗口及100GiB免费配额。
  • 可一键启用备份策略,适用于关键业务数据的轻量保护。
  • 安装命令:openclaw skills install alibabacloud-cloudbackup-ecs-file-backup-essential-edition。
  • 需确认实例所属地域与备份存储桶权限配置正确。

SKILL.md

name
alibabacloud-cloudbackup-ecs-file-backup-essential-edition
description
|

ECS File Backup Essential Edition - Operations & Viewing

Scenario Description

ECS File Backup Essential Edition (ECS文件备份基础版) is a basic backup product launched by Alibaba Cloud's Cloud Backup service (HBR) for ECS file scenarios, featuring one-click activation and zero-configuration setup.

Core Features

FeatureDescription
Automatic Backup (自动备份)Daily automatic backup with 30-day retention
File Recovery (文件恢复)Files accidentally deleted within 30 days can be recovered; supports file-level restoration
Free Quota (免费额度)100 GiB permanent free block storage backup quota per account (shared across all regions)
Low Maintenance (低运维)One-click activation, zero configuration required, backup client auto-installed

Recommended Use Cases

When user requirements match the following conditions, recommend ECS File Backup Essential Edition:

ScenarioDescription
ECS File Data ProtectionNeed to protect/backup ECS file data and recover from accidental deletion
Accept Daily Backup PolicyAccept once-daily backup with 30-day retention
Cost-EffectiveAffordable/free ECS data backup; 100 GiB permanent free quota per account (shared across all regions)
Personal Websites/BlogsQuick recovery from accidental deletion of images or config files
Dev/Test EnvironmentsProtection for code and configuration files
Small Business ApplicationsBasic data protection needs with low maintenance cost

Not-Recommended Scenarios & Alternatives

ScenarioReasonAlternative
RDS or Self-Managed Database Backup (数据库备份)Database files are locked by the main process; backups may be inconsistentFor RDS, contact the RDS team; for MySQL/Oracle/SQL Server, use Cloud Backup Database Backup
Cannot Install Backup Client (不接受安装备份客户端)Backup client consumes ECS CPU and memory resourcesUse ECS Snapshots (note: no file-level recovery)
ECS Spec < 1C512MBSpecs too low, affecting backup performanceUse ECS Snapshots, or upgrade ECS specs first
Full-Machine Clone/DR Failover (整机克隆/异地拉起)Essential Edition does not support full-machine recoveryUse ECS Snapshots
Cross-Region/Cross-Account Backup (跨地域/跨账号备份)Essential Edition does not support cross-region or cross-accountUse Cloud Backup ECS File Backup Standard Edition (enterprise-grade)
KMS-Encrypted Backup Data (KMS加密备份)Essential Edition does not support KMS encryptionUse Cloud Backup ECS File Backup Standard Edition
Custom Backup Policy (自定义备份策略)Essential Edition is fixed at once-daily backup with 30-day retentionUse Cloud Backup ECS File Backup Standard Edition (customizable policy)
Data Volume > 2 TBBackup may not complete within 24 hoursContact Cloud Backup technical support, or use Standard Edition

Usage Limitations

LimitationDescription
Operating System32-bit operating systems not supported
Network TypeClassic network (经典网络) ECS not supported
Storage TypeOnly block storage (块存储) supported; NAS/OSS and other network-mounted storage not supported
Dependent ServiceRequires Cloud Assistant (云助手) service (ECS purchased before Dec 2017 requires manual installation of Cloud Assistant Agent)
ECS SpecRecommended >= 1 vCPU, 512 MB memory for adequate backup performance
Data VolumeLow priority: < 600 GB; High priority: < 2 TB

Scenario Eligibility Check (Mandatory First Step)

CRITICAL - Hard Gate: This is the first step before all operations, taking priority over installation checks, credential verification, and any workflow. The agent MUST complete this check before executing any other step.

Decision Flow:

User requests ECS backup/restore
|
+-> Check each item in "Not-Recommended Scenarios & Alternatives"
|   +-> Matches any not-recommended scenario -> Execute [HALT Flow]
|   +-> No match -> Pass, continue to "Installation Requirements"
|
+-> Not-recommended scenario keywords:
    - Database: MySQL/Oracle/SQL Server/PostgreSQL/MongoDB/Redis/database data directory
    - Full-machine: full-machine recovery/DR failover/clone instance
    - Cross-region/cross-account: remote backup/cross-account replication
    - Custom policy: hourly backup/custom retention period
    - Large data volume: data exceeds 2 TB

[HALT Flow] - Must execute when a not-recommended scenario is matched:

  1. Stop immediately - Do NOT execute installation checks, credential verification, parameter confirmation, or any CLI command
  2. Output warning to user - Explain why the current scenario is not suitable for ECS File Backup Essential Edition (cite the reason from "Not-Recommended Scenarios & Alternatives")
  3. Recommend alternatives - Provide specific alternative products/features
  4. End current task - After outputting the warning and alternatives, the agent MUST stop and NOT continue with any subsequent steps of this Skill
Sole recovery condition: Only when the user proactively and explicitly states "I understand the risks and still want to use ECS File Backup Essential Edition" (or semantically equivalent), may the agent continue. The following are NOT valid confirmations (agent must remain stopped): no reply; vague confirmations ("OK", "Continue", "Help me backup") without mentioning "ECS File Backup Essential Edition"; topic changes; asking about alternatives.

Installation Requirements (Mandatory Pre-check)

CRITICAL: The agent MUST complete the following pre-checks before executing any core workflow.

Pre-check: Aliyun CLI >= 3.3.3 required

Run aliyun version to verify >= 3.3.3. If not installed or version too low, run curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash to update, or see references/cli-installation-guide.md for installation instructions.
aliyun version

Then [MUST] run aliyun plugin update to ensure that any existing plugins on your local machine are always up-to-date. [MUST] CLI User-Agent — Every aliyun CLI command invocation must include: --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition Enable automatic plugin installation:

aliyun configure set --auto-plugin-install true

Pre-check: AI-Mode Configuration

[MUST] Enable AI-Mode — Run before any CLI invocation:

aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition"

[MUST] Disable AI-Mode at EVERY exit point — Before delivering the final response for ANY reason (success, failure, error, cancellation), always disable AI-mode first. AI-mode MUST NOT remain enabled after the skill stops running.

aliyun configure ai-mode disable

Pre-check: aliyun-cli-hbr plugin >= 0.1.3 required

aliyun plugin list 2>/dev/null | grep aliyun-cli-hbr

If the plugin is not installed or the version is below 0.1.3, install/update:

aliyun plugin install --names aliyun-cli-hbr
After plugin installation, HBR commands and parameter names use kebab-case naming convention (e.g., describe-backup-plans instead of DescribeBackupPlans).

Credential Verification

Pre-check: Alibaba Cloud Credentials Required Security Rules: - NEVER print, echo, or output AK/SK values in any form (including partial fragments or masked forms) - NEVER expose any credential content in command-line arguments, logs, conversation output, or code comments - NEVER enter AK/SK directly in the command line - ONLY USE aliyun configure list to check credential status; NEVER echo the output of this command to the user (output may contain credential-related information); the agent should only use the output internally to determine whether credentials are valid ``bash aliyun configure list ` Confirm the output shows a valid profile (AK, STS, or OAuth identity). **If no valid credentials exist, configure first:** 1. Obtain credentials from [Alibaba Cloud Console](https://ram.console.aliyun.com/manage/ak) 2. Run aliyun configure in the terminal to configure credentials 3. Re-run aliyun configure list` to confirm successful configuration

Parameter Confirmation & Validation

IMPORTANT: Parameter Confirmation - Before executing any command, all customizable parameters must be confirmed with the user. Do not assume default values; explicit user confirmation is required. If the user refuses to confirm or does not respond to the confirmation request, the agent MUST abort the current operation and NOT continue with subsequent steps.
CRITICAL - Security Gate: Before embedding any parameter into a CLI command, the agent MUST validate all user-provided parameters against the validation regex in the table below. On validation failure, the agent MUST refuse to execute the command, inform the user which parameter is invalid and what format is expected, and wait for the user to provide a valid value before re-validating.
ParameterRequired/OptionalDescriptionValidation RegexExample
REGION_IDRequiredRegion of the ECS instance (ECS实例所在地域)^[a-zA-Z0-9-]+$cn-hangzhou
INSTANCE_IDRequiredECS Instance ID (ECS实例ID)^[a-zA-Z0-9-]+$i-bp1abc123def456
PLAN_IDRequired for some opsBackup Plan ID (备份计划ID); needed for pause/resume/cancel^[a-zA-Z0-9-]+$plan-abc123
VAULT_IDRequired for restoreBackup Vault ID (备份仓库ID); obtained via search-historical-snapshots^[a-zA-Z0-9-]+$v-0001xjb123
SNAPSHOT_IDRequired for restoreSnapshot ID (备份版本ID); obtained via search-historical-snapshots^[a-zA-Z0-9-]+$s-0001abc123
SNAPSHOT_HASHRequired for restoreSnapshot Hash (备份版本哈希值); obtained via search-historical-snapshots^[a-zA-Z0-9-]+$sh-abc123
performanceLevelOptionalBackup priority (备份优先级): L0 (default, data < 600 GB) or L1 (data 600 GB~2 TB)`^(L0\L1)$`L0
ConflictPolicyRequired for restoreFile conflict policy (文件冲突策略): SKIP_THE_FILE (skip) or OVERWRITE_EXISTING (overwrite)`^(SKIP_THE_FILE\OVERWRITE_EXISTING)$`SKIP_THE_FILE
CLIENT_TOKENRequired for restoreIdempotency token (幂等令牌); agent-generated UUID, reuse on timeout retry^[a-zA-Z0-9-]{1,64}$550e8400-e29b-41d4-a716-446655440000
keep-latest-snapshotsOptionalKeep last backup version (保留最后一个备份版本): 1 (keep) or 0 (don't keep)`^(0\1)$`1
SOURCE_PATHOptional for restoreSource file path to restore (要恢复的源文件路径)^[a-zA-Z0-9/_.-]+$/home/data/file.txt
TARGET_PATHRequired for restoreRestore target directory (恢复目标目录); must already exist^[a-zA-Z0-9/_.-]+$/tmp/restore

RAM Permissions

This Skill requires the permissions detailed in references/ram-policies.md.

Recommended system policy: AliyunHBRFullAccess


Core Workflows

CRITICAL: Before executing any of the following workflows, the agent MUST complete all steps in "Scenario Eligibility Check" and "Installation Requirements (Mandatory Pre-check)". If Aliyun CLI or the aliyun-cli-hbr plugin is not installed or does not meet version requirements, it MUST be installed/updated first before proceeding. Note: All CLI operations below are idempotent and safe to retry.

1. Activate Backup

Activate ECS File Backup Essential Edition for a specified ECS instance.

Step 1: Enable Cloud Backup Service (first-time use)

aliyun hbr open-hbr-service \
  --endpoint hbr.aliyuncs.com \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition

Step 2: Activate ECS Instance Backup

aliyun hbr create-backup-plan \
  --region <REGION_ID> \
  --edition BASIC \
  --source-type ECS_FILE \
  --instance-id <INSTANCE_ID> \
  --keep-latest-snapshots 1 \
  --options '{"performanceLevel":"<LEVEL>"}' \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition
Idempotent operation; repeated calls for the same instance will not create duplicate backup plans. Safe to retry on timeout.

Step 3: Verify Activation Status

Activation and client installation are asynchronous operations; they typically take a few minutes to become ready.

Use the status determination logic from "5. View ECS Backup Status" to verify. Expected state progression: Preparing -> Ready -> Backing Up


2. Pause Backup (Suspend)

Pause the backup plan (备份计划) while retaining existing backup data; can be resumed later.

Step 1: Get Backup Plan ID

aliyun hbr describe-backup-plans \
  --region <REGION_ID> \
  --edition BASIC \
  --source-type ECS_FILE \
  --filters '[{"Key":"instanceId","Values":["<INSTANCE_ID>"]}]' \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition
Extract PlanId from the response.

Step 2: Pause Backup

aliyun hbr disable-backup-plan \
  --region <REGION_ID> \
  --plan-id <PLAN_ID> \
  --edition BASIC \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition

3. Resume Backup

Resume a previously paused backup plan.

aliyun hbr enable-backup-plan \
  --region <REGION_ID> \
  --plan-id <PLAN_ID> \
  --edition BASIC \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition

4. Cancel Backup (Delete)

WARNING: This operation will permanently delete all backup data and is irreversible! User intent must be confirmed before execution. If the user has not explicitly confirmed deletion, the agent MUST abort the operation and NOT continue.

Step 1: Get Backup Plan ID

aliyun hbr describe-backup-plans \
  --region <REGION_ID> \
  --source-type ECS_FILE \
  --edition BASIC \
  --filters '[{"Key":"instanceId","Values":["<INSTANCE_ID>"]}]' \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition

Step 2: Delete Backup Plan

aliyun hbr delete-backup-plan \
  --region <REGION_ID> \
  --plan-id <PLAN_ID> \
  --edition BASIC \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition
After cancellation, the instance stops incurring charges; deleted backup data cannot be recovered. Safe to call repeatedly on an already-deleted plan.

5. View ECS Backup Status

Step 1: Query Backup Plan

aliyun hbr describe-backup-plans \
  --region <REGION_ID> \
  --edition BASIC \
  --source-type ECS_FILE \
  --filters '[{"Key":"instanceId","Values":["<INSTANCE_ID>"]}]' \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition

Step 2: Query Latest Backup Job

aliyun hbr describe-backup-jobs-2 \
  --region <REGION_ID> \
  --edition BASIC \
  --source-type ECS_FILE \
  --filters '[{"Key":"instanceId","Values":["<INSTANCE_ID>"]}]' \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition
describe-backup-jobs-2 returns backup jobs sorted by creation time in descending order; the first record is the latest execution result.

Status Determination Logic

describe-backup-plans finds no plan -> Not Activated (未激活)
describe-backup-plans finds a plan
+-> Disabled = true -> Paused (已暂停)
+-> Query describe-backup-jobs-2 for latest backup job
    +-> No backup jobs -> Preparing (准备中)
    +-> Has backup jobs (first record = latest result)
        +-> COMPLETE/PARTIAL_COMPLETE -> Backup Normal (备份正常)
        +-> RUNNING/QUEUED/CREATED -> Backing Up (备份中)
        +-> CANCELED -> Canceled (已取消)
        +-> FAILED/EXPIRED -> Backup Abnormal (备份异常); troubleshoot via describe-backup-clients

Auxiliary Query Commands

View backup client status:

aliyun hbr describe-backup-clients \
  --region <REGION_ID> \
  --client-type ECS_CLIENT \
  --instance-ids '["<INSTANCE_ID>"]' \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition

View backup history (Snapshot list):

aliyun hbr search-historical-snapshots \
  --region <REGION_ID> \
  --edition BASIC \
  --source-type ECS_FILE \
  --query '[{"field":"instanceId","value":"<INSTANCE_ID>","operation":"MATCH_TERM"}]' \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition

6. View Free Quota & Capacity

aliyun hbr get-basic-statistics \
  --source-type ECS_FILE \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition

Key field: GlobalStatistics.ProtectedDataSize is the total block storage capacity of backed-up ECS instances (in bytes).

Free quota rules: 100 GiB per account (permanent, shared across all regions). Usage beyond the quota is billed on a pay-as-you-go basis; billing is based on the total block storage capacity mounted on backed-up ECS instances.


7. File Restore

aliyun hbr create-restore-job \
  --region <REGION_ID> \
  --restore-type ECS_FILE \
  --edition BASIC \
  --source-type ECS_FILE \
  --vault-id <VAULT_ID> \
  --snapshot-id <SNAPSHOT_ID> \
  --snapshot-hash <SNAPSHOT_HASH> \
  --include '["<SOURCE_PATH>"]' \
  --target-instance-id <INSTANCE_ID> \
  --target-path <TARGET_PATH> \
  --options '{"ConflictPolicy":"<CONFLICT_POLICY>"}' \
  --client-token <UUID> \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition
VaultId, SnapshotId, and SnapshotHash can be obtained via search-historical-snapshots. Omitting --include restores all files in the snapshot. TargetPath must be an existing directory on the target ECS instance; otherwise the restore job will report a TARGET_NOT_EXIST error. Using the OVERWRITE_EXISTING policy will overwrite files with the same name at the target path; explicit user confirmation is required before execution. If the user has not confirmed, the agent MUST abort the restore operation. Use --client-token to ensure idempotency; the agent should generate a UUID as the ClientToken and reuse the same token on timeout retries to prevent duplicate restore jobs.

View Restore Progress

aliyun hbr describe-restore-jobs-2 \
  --region <REGION_ID> \
  --edition BASIC \
  --restore-type ECS_FILE \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition

8. Modify Scheduled Backup Time

Step 1: Get Backup Plan ID

aliyun hbr describe-backup-plans \
  --region <REGION_ID> \
  --edition BASIC \
  --source-type ECS_FILE \
  --filters '[{"Key":"instanceId","Values":["<INSTANCE_ID>"]}]' \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition

Step 2: Update Backup Schedule

aliyun hbr update-backup-plan \
  --region <REGION_ID> \
  --plan-id <PLAN_ID> \
  --edition BASIC \
  --schedule 'I|<TIMESTAMP>|P1D' \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition
Schedule format: I|<start_timestamp>|P1D, where start_timestamp is a Unix timestamp in seconds, and P1D means once per day (fixed for Essential Edition).

9. Toggle Keep-Last-Snapshot

When enabled, even if all backup versions exceed the retention period, the system will retain the last version without deleting it.

aliyun hbr update-backup-plan \
  --region <REGION_ID> \
  --plan-id <PLAN_ID> \
  --edition BASIC \
  --keep-latest-snapshots <0_OR_1> \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition
1 = keep the last backup version (recommended); 0 = do not keep; all backup points older than 30 days will be automatically deleted.

10. Adjust Backup Execution Priority

aliyun hbr update-backup-plan \
  --region <REGION_ID> \
  --plan-id <PLAN_ID> \
  --edition BASIC \
  --options '{"performanceLevel":"<LEVEL>"}' \
  --read-timeout 60 \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudbackup-ecs-file-backup-essential-edition
See performanceLevel in the Parameter Confirmation table for valid values; detailed use cases are described in references/related-apis.md.

Verification

See references/verification-method.md for details.


References

DocumentLink
CLI Installation Guidereferences/cli-installation-guide.md
API & CLI Command Referencereferences/related-apis.md
RAM Permission Policiesreferences/ram-policies.md
Verification Methodsreferences/verification-method.md
Official User GuideECS File Backup Essential Edition
Cloud Backup API DocsHBR API Reference

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

95.37%
按下载量换算1,411

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install alibabacloud-cloudbackup-ecs-file-backup-essential-edition 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills