Files
karuo-ai/.cursor/rules/timemachine-snapshot-protection.mdc
2026-07-19 00:21:46 +08:00

47 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
description: 时间机器快照保护铁律 — 禁止 AI 擅自删除/瘦身任何 TM 快照与备份历史
globs: "**/*"
alwaysApply: true
---
# 时间机器快照保护铁律(强制 · 卡若 2026-06-11
## 保护对象
- **本机本地快照**`tmutil listlocalsnapshots /` 列出的 `com.apple.TimeMachine.*.local`
- **NAS / 网络备份历史**sparsebundle、`Backups.backupdb`、Time Machine 目标卷内一切备份数据
- **半成品目录**`*.interrupted`、`*.inprogress`
## 禁止(无卡若本轮逐条明文授权时一律不得执行)
- `tmutil thinlocalsnapshots`(任何参数)
- `tmutil deletelocalsnapshots`
- `tmutil delete` / 删除备份目标 / 移除 TM 目标盘配置
- `rm` / `rm -rf` 删除上述保护对象或 sparsebundle 内数据
- 为「提速」「腾空间」「修复卡住」而主动清快照、删历史备份
- 调用 `time_machine_cleanup_interrupted.sh`(除非用户当轮明确点名)
## 允许(只读 / 诊断 / 不删数据)
- `tmutil status`、`listlocalsnapshots`、`destinationinfo`、`currentphase`
- 读日志与 diag、挂载与网络排查
- `tmutil stopbackup` + `startbackup` 重启备份(不删快照)
- `tm_speed_optimize.sh`、`tm_vpn_bypass_lan.sh`(不涉及删快照)
## TM 卡住时的正确顺序
1. 只读诊断bytes 采样、NAS 挂载、VPN、磁盘 Avail只报告
2. 网络修复与提速脚本
3. `stopbackup` → `startbackup --auto`
4. 盘满时向卡若说明占用,**建议用户自行决定** — 不得代删快照
## 授权门槛
仅当卡若**当轮**明确说「删除/瘦身时间机器快照」「清理 interrupted」等才可删。
含糊的「修复时间机器」**不构成**删快照授权。
## 真源
- `运营中枢/参考资料/卡若AI异常处理与红线.md` §二·4
- `01_卡资/金仓_存储备份/群晖NAS管理/SKILL.md` §时间机器快照保护