docs: def _restore_backup(self):
          """Restore the specified database."""
          input_filename, input_file = self._get_backup_file(database=self.database_name,
                                                             servername=self.servername)
          self.logger.info("Restoring backup for database '%s' and server '%s'",
                           self.database_name, self.servername)
          self.logger.info("Restoring: %s" % input_filename)
  
          if self.decrypt:
              unencrypted_file, input_filename = utils.unencrypt_file(input_file, input_filename,
                                                                      self.passphrase)
              input_file.close()
              input_file = unencrypted_file
          if self.uncompress:
              uncompressed_file, input_filename = utils.uncompress_file(input_file, input_filename)
              input_file.close()
              input_file = uncompressed_file
  
          self.logger.info("Restore tempfile created: %s", utils.handle_size(input_file))
          if self.interactive:
              self._ask_confirmation()
  
          input_file.seek(0)
          self.connector = get_connector(self.database_name)
          self.connector.restore_dump(input_file)