time-machine-recovery – skill Khác cho agent AI
Chẩn đoán các bản sao lưu Time Machine trên macOS bị lỗi hoặc treo, và giải phóng dung lượng trên đích APFS cục bộ vẫn đầy sau khi xóa bản sao lưu.
Cài skill time-machine-recovery bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/time-machine-recovery-812c6.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /time-machine-recovery – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/time-machine-recovery-812c6.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $time-machine-recovery – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/time-machine-recovery-812c6.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /time-machine-recovery – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/time-machine-recovery-812c6.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /time-machine-recovery – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Time Machine Recovery
When to Use
Use this when Time Machine reports a full or unavailable destination, or when Finder shows zero completed backups while the volume remains full.
Identify the failure
- Read
tmutil destinationinfo,tmutil status, and recent unified logs. For example, use/usr/bin/log show --last 2h --info --style compact --predicate 'subsystem == "com.apple.TimeMachine"'and narrow the output to the latest attempt and its failure phase. - For a local destination, use
diskutil list external,diskutil info "<mount point>", anddf -h "<mount point>". Record the destination volume UUID and any sibling partitions. Confirm the current target before every mutation. Keep actions scoped to the verified volume. For a network destination, check mount, connectivity, and server quota. The APFS steps below apply to local APFS volumes. - If the target is full, distinguish the minimum free space Time Machine logs before copying from the actual space the backup needs. Time Machine preserves the last completed backup during automatic thinning. Check local APFS snapshots with
diskutil apfs listSnapshots "<mount point>". Interpret the command result alongside Finder ortmutil listbackupswhen accessible. - If Finder says “No Completed Backups” while the destination stays full, measure the live files. Use
sudo du -x -h -d 1 "<mount point>"in a Terminal with Full Disk Access. If access is blocked, ask the user to run the read-only command locally and paste its output. Wait for the final total and prompt before interpreting partial output. Look for.inprogress,.interrupted, and.previousdirectories. Finder's Time Machine view may omit them.
Recover the existing destination
- If the evidence shows leftover incomplete backups, Time Machine is idle, and cleanup is authorized, check
man tmutilfor the installed version. Usesudo tmutil deleteinprogress "<verified machine directory>". The machine directory can be the mounted backup volume root on local APFS. Confirm the layout before reusing that argument. The command needs root and Full Disk Access and can revert an APFS destination to its last backup. Explain that it discards incomplete backup data. If the session lacks privileges, have the user run it locally. - Monitor the process and free space. Multi-gigabyte deletion can remain silent while space increases. Let it finish before retrying or starting a backup. Judge the result from the final message, exit status, remaining files, and measured space together. A cleanup can report deletion alongside a nonzero exit status. A fresh listing can distinguish remaining backup data from the Spotlight index.
- If cleanup leaves unexplained usage, recheck snapshots and live files. If the discrepancy persists, use read-only file-system verification or guide the user through First Aid on the selected volume. Treat permission failures separately from disk faults. Avoid recursive removal of Time Machine internals as a default. Erase only with explicit authorization for the verified volume, after establishing what it contains and respecting any instruction to preserve sibling partitions or avoid formatting.
- With sufficient space, run or guide the user through a fresh backup. Verify a new completed backup timestamp and check the latest logs if it fails. Report recovered capacity separately from successful backup completion.
Example
For a local APFS destination that stays full after its last completed backup was deleted, compare the snapshot list with a read-only directory size scan. If the scan shows a large incomplete backup, verify the destination and use the scoped cleanup after authorization. Check free space before attempting a fresh backup.
Limitations
The local cleanup procedure does not apply to network destinations. A successful cleanup establishes available capacity. A new completed backup establishes that Time Machine works again.
Use [Apple's backup troubleshooting guide](https://support.apple.com/102220) and [Disk Utility First Aid instructions](https://support.apple.com/102611) for current macOS behavior.
Skill liên quan
- time-tracking – Sổ ghi thời gian: nhân viên, dự án, khách hàng, công việc, số giờ, cờ có tính phí, đơn…
- title-meta-length-counter – Bộ đếm độ dài Title & Meta. Dùng khi làm việc với title và/hoặc meta description.
- to-issues – Chia kế hoạch, spec hoặc PRD thành các issue độc lập có thể nhận làm trên hệ thống theo…
- to-prd – Biến cuộc trò chuyện hiện tại thành PRD và đăng lên hệ thống theo dõi issue của dự án…
- traderspy-market-screener – Quét các cặp crypto futures giao dịch nhiều nhất theo tối đa 3 điều kiện kỹ thuật trong…
- traderspy-smart-money – Theo dõi top trader crypto futures đang nắm giữ gì trên Binance, Hyperliquid, Bybit và…
- traderspy-trading-signals – Lấy và giải thích tín hiệu AI crypto futures của TraderSpy: điểm vào, thang chốt lời…
- traffic-potential-calculator – Traffic Potential Calculator. Dùng khi làm việc với lượng tìm kiếm và giả định CTR rõ…