Turn your notebook into a configurable batch job.
Recent revisions are kept. Restoring one creates a new revision.