def METHOD_NAME(self, backup_xml, checkpoint_xml, flags=None):
    if self.backing_up:
        raise libvirt.libvirtError("backup already running for that VM")
    self.input_checkpoint_xml = checkpoint_xml
    self.backup_xml = self._generate_backup_xml(backup_xml)
    self.backing_up = True
    return 0