Run Magento commands in the right environment.
Recent revisions are kept. Restoring one creates a new revision.