# Inventory a corporate file share (SMB/NFS) into Apache Iceberg

**A departmental file server — years of Excel dumps, CSV exports,
PDFs, and vendor drops on an SMB or NFS share — becomes a complete,
audited inventory in an afternoon: every feed identified, schemas
profiled, PII flagged, and the valuable tables landed in Iceberg.**
Mount the share read-only, point Lakewright at the mount, and the
assessment runs on a laptop without data leaving the building.

## How do consultants use this?
As the engagement itself: the scan report IS the data-stack
assessment deliverable — what exists, what it is, what's sensitive,
what's duplicated, what's worth landing. Then the client keeps the
tool running on what you found.

## How are shares accessed?
Via the OS mount (the layer that already does Kerberos/NTLM auth and
reconnects properly): `mount -t cifs //server/share /mnt/x -o ro`
or `mount_smbfs` on macOS, then `lakewright scan /mnt/x`. Read-only
mounts are respected — the scan never writes to the source.

## The steps
```bash
mount -t cifs //fileserver01/finance /mnt/finance -o ro,user=analyst
lakewright scan /mnt/finance          # the assessment report
lakewright plan /mnt/finance --out plans
lakewright approve plans/ap_invoices.plan.yaml
lakewright load  plans/ap_invoices.plan.yaml --rest $CATALOG
```

## FAQ
**Millions of files?** The examination cache means re-scans only
read what changed; first-pass sampling is bounded per file.
**Old Office files, PDFs, weird formats?** Excel/DOCX/PDF (with
OCR routing), fixed-width, dBase, email archives with attachments —
the long tail is the point.
