Time Machine is a great way to back up your computer. If you're using a Mac laptop with Time Machine enabled, How-To Geek points out there's a local backup file packed with previous versions of files that might be useful if you mess something up when you're on the go.
When your laptop is away from your Time Machine backup, it creates a local file to back up later. These local snapshots are packed with deleted files and previous versions of files, just like a regular Time Machine backup would be. This is great when you're travelling or away from your Time Machine backup, because you can restore from your laptop even though you never actually backed things up.
Just head into the Time Machine interface and restore a file just like you would if you were connected to your external hard drive. This doesn't work on desktop versions, and you'll need to have Time Machine already set up for this to work.