Move your codebase with a tested migration plan.
Recent revisions are kept. Restoring one creates a new revision.