Restoring a system to a previous state can be done on a Mac if Time Machine is enabled. To use Time Machine, a user has to set up an external hard drive or Time Capsule as the designated drive in which to save daily copies of the system.
With Lion, Mac OS X also introduced a way to restore previous versions of documents without the need to restore the whole system. To do that in Mavericks, just go to the File menu in any compatible app, click Revert To, and click Browse All Versions. You can then choose the appropriate one from the menu.