What program is it?
Go to apple logo on top left --> system preferences --> time machine --> is this enabled and have a recent backup?
Restart the device.
hold down Cmd+R to start in OS X Recovery
Select Restore From Time Machine Backup
there maybe another backup listed before that