def restore(nsc, password = nil)
      raise 'Supplied Password is incorrect for restoring this Backup.' if invalid_backup_password?(nsc, password)
      parameters = { 'backupid' => @name,
                     'cmd' => 'restore',
                     'targetTask' => 'backupRestore',
                     'password' => password }
      xml = AJAX.form_post(nsc, '/admin/global/maintenance/maintCmd.txml', parameters)
      if !!(xml =~ /succeded="true"/)
        nsc._maintenance_restart
      end
    end
def restore(nsc, password = nil)
      raise 'Supplied Password is incorrect for restoring this Backup.' if invalid_backup_password?(nsc, password)
      parameters = { 'backupid' => @name,
                     'cmd' => 'restore',
                     'targetTask' => 'backupRestore',
                     'password' => password }
      xml = AJAX.form_post(nsc, '/admin/global/maintenance/maintCmd.txml', parameters)
      if !!(xml =~ /succeded="true"/)
        nsc._maintenance_restart
      end
    end
Restore this backup to the Nexpose console.
 It will restart the console after acknowledging receiving the request.

 @param [Connection] nsc An active connection to a Nexpose console.
 @param [String] (Optional) The password to use when restoring the backup.
 @return [Boolean] Whether the request was received.