aboutsummaryrefslogtreecommitdiff
path: root/skills/file-archive-manager.json
blob: 7d10710152f53e2a3c3242324b0df6b4542deb21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  "name": "file-archive-manager",
  "description": "Organize, compress, and prune files in VFS. Manage storage bloat and identify unused files.",
  "tags": [
    "files",
    "storage",
    "vfs",
    "cleanup",
    "archive"
  ],
  "category": "system",
  "created": "2026-10-16T16:28:11.499Z",
  "updated": "2026-10-16T16:30:38.270Z",
  "content": "---\nname: file-archive-manager\ndescription: Organize, compress, and prune files in VFS. Manage storage bloat and identify unused files.\ntags: [files, storage, vfs, cleanup, archive]\ncategory: system\n---\n## Steps\n1. **Scan for large files:**\n   - Run: du -sh /* 2>/dev/null | sort -rh | head -20\n   - Identify files >10MB that could be archived\n\n2. **Find unused files (not accessed in 30+ days):**\n   - Check file metadata with stat command\n   - List by date: ls -lt (newest first), ls -ltr (oldest first)\n\n3. **Archive files:**\n   - Create tar.gz: tar -czvf archive.tar.gz /path/to/files\n   - Store archives in /archives/ directory\n   - Delete originals after successful archive\n\n4. **Prune stale content:**\n   - Remove old checkpoints: checkpoint-list → checkpoint-del <name>\n   - Clear session logs >7 days: session_recent(30) → identify old entries\n   - Delete temp files in /tmp/\n\n5. **Storage report:**\n   - df -h (disk usage)\n   - du -sh /* (per-directory breakdown)\n   - Report findings to user before major cleanup\n\n## When to use:\n- User mentions \"storage full\" or \"too many files\"\n- Before major system updates\n- Monthly maintenance routine\n"
}