If you use iCloud to store your documents, these files are also stored on your Mac, and therefore backed up by Time Machine, if you use the latter feature. (See this hint for more about where these files are stored on your Mac.) If you want to look for an older version of a file, or a file you deleted, display the iCloud pane in any app that supports iCloud, then, from the Time Machine icon in the menu bar, choose Enter Time Machine. This will give you a Time Machine view of the iCloud pane for that application only, and you can find older versions or deleted files.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20120809072445306