{ "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 \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" }