linux: OverlayFS

Tags: til linux filesystem

OverlayFS offers a quick way to capture ALL file changes to a base directory via copy on write (COW) stored in an upper directory, presented transparently merged in a virtual directory:

sudo mount \
  -t overlay \
  overlay
  -o lowerdir={DIR1},upperdir={DIR2} \
  {DIR3}

where:

Published on: 18 Jun 2026