zhh9126/backup-platform/mongodb-backup
Claude Code and agent skill by zhh9126/backup-platform
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
MongoDB 数据库备份与恢复技能。通过 mongodump 进行逻辑全量备份,支持 gzip 压缩和 mongorestore 恢复。增量备份建议配合 oplog 重放实现 PITR。当用户需要对 MongoDB 进行 备份恢复或数据迁移时,应使用此技能。
Install
npx vskill@latest install zhh9126/backup-platform/mongodb-backupSKILL.md
MongoDB 备份技能
概述
MongoDB 逻辑备份恢复,使用 mongodump / mongorestore 工具链。
备份引擎: MongoEngine (adapter_tier: peripheral_api)
支持的能力
| 能力 | 说明 | |
|---|---|---|
| 全量备份 | mongodump --out <dir>,目录输出 | |
| 压缩 | mongodump --gzip 压缩输出 | |
| 认证 | --authenticationDatabase 支持 | |
| 恢复-整库 | mongorestore --drop 先删后恢复 | |
| 恢复-指定库 | 支持指定目标库恢复 |
备份类型(BackupType)
FULL— 全量 dumpp(唯一支持)INCREMENTAL/DIFFERENTIAL自动回退为 FULL
备份模式(BackupMode)
LOGICAL— mongodump(唯一支持)- 无物理备份支持
API 端点
| 方法 | 端点 | 说明 | |
|---|---|---|---|
| POST | /tasks | 创建备份任务(db_type=mongodb) | |
| GET | /tasks | 查询任务列表 | |
| POST | /tasks/<id>/run | 执行 dump 任务 | |
| POST | /restore | 执行 mongorestore | |
| GET | /records?db_type=mongodb | 查询备份记录 | |
| GET | /plugins?category=mongodb | 查看 MongoDB 相关插件 |
插件依赖
- mongodb-database-tools — MongoDB 官方数据库工具集(mongodump, mongorestore)
使用示例
全量 dump
恢复
增量/PITR
平台不原生支持 oplog 增量。建议:
- 定期全量 mongodump
- 配合 oplog 时间窗口做 PITR
- 安装 mongodb-database-tools 插件使用
mongoshell 操作 oplog
安全
密码以 --password 参数明文传入命令行(MongoDB 官方惯例),建议使用 --uri 连接串方式。
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mongodb-backup/SKILL.md
Popularity
- Repository stars
- 85
- Repository forks
- 24
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zhh9126/backup-platform/mongodb-backup)