restore() public method

Restore the database and modules from the restore file
public restore ( string $restore_file )
$restore_file string "The location of teh restore zip file"
 public function postRestore()
 {
     Sentry::logout();
     $synchronizer = new Synchronize($this);
     $restore_file = $synchronizer->copyToRestore(Input::all());
     $synchronizer->restore($restore_file);
     return Redirect::to('/');
 }
 public function postRestore()
 {
     $input = Input::all();
     $synchronizer = new Synchronize($this);
     if (isset($input['backup_id'])) {
         $backup = Backup::findOrFail($input['backup_id']);
         $restore_file = $backup->file;
     } else {
         $restore_file = $synchronizer->copyToRestore($input);
     }
     Sentry::logout();
     $synchronizer->restore($restore_file);
     return Redirect::to('/');
 }