Build behavior with tests and an auditable commit trail.
Recent revisions are kept. Restoring one creates a new revision.