  A complete characterization of nearly-invariant subspaces of finite defect
for the backward shift operator acting on the Hardy space is provided in the
spirit of Hitt and Sarason's theorem. As a corollary we describe the
almost-invariant subspaces for the shift and its adjoint.
