Inspect and edit your InDesign documents from the shell.
Recent revisions are kept. Restoring one creates a new revision.