The invention discloses a data
backup method and device, equipment, a medium and a
computer program product, and relates to the technical field of
data processing.The method comprises the steps that when a continuous protection snapshot is created for a source volume, the current
backup generation of the source volume before the snapshot is created is set as a snapshot generation identifier; and
synchronizing data by relying on mapping relation
metadata including the current
backup generation of the source volume, the last backup generation of the source volume, the storage backup data generation of the target volume and the
water level field. Reading corresponding generation data of the source volume according to the
water level mark in the first backup, writing into the target volume, and increasing the
water level to the total number of source volume data blocks after completion; during
incremental backup, a new snapshot is created, the water level is reset, only adjacent generations of difference data are synchronized, and a corresponding generation identifier is distributed for target volume data in each backup. In this way, no extra
bitmap is needed to participate in difference marking, the synchronization efficiency is improved, the target volume keeps historical backup data of all generations in the synchronization period, and the problem that the target volume cannot effectively protect data in the traditional
incremental backup synchronization stage is solved.