Admin Dashboard
System overview + integrity audit (read-only).
👥 Users
—
🗂 Archive Files
—
💾 Archive Bytes (DB)
—
📈 Quota Used (Total)
—
📦 Quota Total
—
🕒 Last Upload
—
Top Users
Sorted by quota_used (top 20)
Integrity Audit — Photo Archive (DB → Disk)
Checks that each app.photo_archive row points to a file on disk with matching size.
Optional: check expected thumbnail existence.
Archive Scan — Reconcile DB ↔ Disk (V4)
Marks archive_missing when DB says archived but disk file is missing.
Optionally deletes orphan files that belong to deleted rows.
Archive Scan (DB → Disk):
Verifies that archive records in the database correctly match files stored on disk.
It will:
- Mark records as
archive_missingif the file no longer exists on disk. - Restore
archive_missingback toarchivedif the file reappears. - Update verification timestamps for healthy files.
- Optionally remove disk files that belong to records already marked
deleted.
Orphan Scan (Disk → DB):
Searches archive storage for files that exist on disk but have no corresponding
database record. These files are considered orphans.
When run, orphan files are safely moved into a protected
archive/_orphans/ holding area and the file owner is notified.
No files are permanently deleted.