baidu-pcs-backup
将本地文件/目录增量备份到百度网盘,仅上传网盘中尚不存在的文件,已存在且一致的文件自动跳过。当用户需要定期备份本地数据到网盘、避免重复上传时激活此技能。
Best use case
baidu-pcs-backup is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
将本地文件/目录增量备份到百度网盘,仅上传网盘中尚不存在的文件,已存在且一致的文件自动跳过。当用户需要定期备份本地数据到网盘、避免重复上传时激活此技能。
Teams using baidu-pcs-backup should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/backup/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How baidu-pcs-backup Compares
| Feature / Agent | baidu-pcs-backup | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
将本地文件/目录增量备份到百度网盘,仅上传网盘中尚不存在的文件,已存在且一致的文件自动跳过。当用户需要定期备份本地数据到网盘、避免重复上传时激活此技能。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 百度网盘增量备份 ## 使用场景 - 定期将本地目录备份到网盘(增量,不重复上传) - 首次全量备份后,后续仅同步新增文件 - 结合 `--remove-source` 将本地文件归档迁移到云端 - 使用 `--daemon` 守护模式持续监控并自动备份 ## 命令格式 ```bash baidu-pcs-cli-rs backup [本地路径] [远程路径] [-d] [--rm] ``` ## 参数说明 | 参数 | 类型 | 说明 | 示例 | |------|------|------|------| | `<本地路径>` | 可选 | 本地源文件或目录路径(未提供时从配置文件读取) | `~/documents` | | `<远程路径>` | 可选 | 网盘目标目录路径(未提供时从配置文件读取) | `/备份/documents` | | `-d` / `--daemon` | 可选 | 守护模式,持续监控本地变更并自动备份 | `-d` | | `--rm` | 可选 | 备份成功后删除本地源文件 | `--rm` | ## 与 `tx` 命令的区别 | | `backup` | `tx` | |-|---------|------| | 已存在文件 | **跳过** | 覆盖上传 | | 适用场景 | 增量备份 | 全量同步/覆盖 | ## 注意事项 - 文件存在性通过**文件名**判断,若内容变更但文件名相同则不会更新(如需覆盖更新请使用 `tx`) - `--rm` 在备份成功后删除本地源文件,请确认后再使用 - 守护模式(`--daemon`)下程序会持续运行,监控本地文件变更并自动备份新增文件 - 本地路径和远程路径均可省略,未提供时会尝试从配置文件读取 ## 示例 ```bash # 增量备份本地目录到网盘 baidu-pcs-cli-rs backup ~/documents /备份/documents # 守护模式持续备份 baidu-pcs-cli-rs backup ~/documents /备份/documents --daemon # 备份并删除本地源(归档到云端) baidu-pcs-cli-rs backup ~/旧项目 /归档/旧项目 --rm # 使用配置文件中的路径,守护模式 baidu-pcs-cli-rs backup --daemon ```
Related Skills
baidu-pcs-wget
下载百度网盘分享链接中的文件到本地,支持需要提取码的分享链接,可指定本地保存目录。当用户需要从百度网盘分享链接下载文件时激活此技能。
baidu-pcs-version
显示百度网盘 CLI 工具的版本信息。当用户需要确认当前安装的版本号时激活此技能。
baidu-pcs-tx
将本地文件或目录上传到百度网盘(本地 → 远程),支持递归上传目录和上传后删除本地源文件。当用户需要上传文件到网盘时激活此技能。
baidu-pcs-self
管理百度网盘 CLI 工具自身,包括查看配置文件路径、检查更新和自动下载最新版本。当用户需要查看配置文件位置、检查或升级工具版本时激活此技能。
baidu-pcs-rx
从百度网盘下载文件或目录到本地(远程 → 本地),支持递归下载整个目录。当用户需要从网盘下载文件或目录到本机时激活此技能。
baidu-pcs-mv
在百度网盘内移动或重命名文件/目录(远程到远程)。当用户需要在网盘中移动文件位置或对文件/目录重命名时激活此技能。
baidu-pcs-mkdir
在百度网盘中创建一个或多个远程目录,支持自动创建父目录。当用户需要在网盘中新建目录、组织文件结构时激活此技能。
baidu-pcs-ls
列出百度网盘指定远程目录下的文件和子目录,支持递归展开。当用户需要查看百度网盘目录内容、浏览文件列表时激活此技能。
baidu-pcs-cp
在百度网盘内复制文件或目录(远程到远程),不涉及本地文件。当用户需要在网盘内部复制、备份文件或目录时激活此技能。
baidu-pcs-completion
为百度网盘 CLI 工具生成 shell 自动补全脚本,支持 bash/zsh/fish/powershell 等主流 shell,可安装到 shell 配置文件中。当用户需要启用命令行 Tab 补全功能时激活此技能。
baidu-pcs-auth
对百度网盘 CLI 工具(baidu-pcs-cli-rs)执行 OAuth 设备码授权登录,或检查当前登录状态是否有效。当用户需要登录百度网盘、切换账号或授权认证时激活此技能。
baidu-search
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.