Make your Bash scripts safer when things fail.
Recent revisions are kept. Restoring one creates a new revision.