The invention discloses a
distributed database backup method and device and a medium, and relates to the field of databases, the method comprises the following steps: receiving a
backup instruction of a
target database, analyzing the
backup instruction, extracting a backup type and a backup
target range in the backup instruction, and generating a corresponding backup task; when the full backup task is executed, an initial logic
clock is generated, and an initial blood relationship
topological graph is constructed; creating a full-amount atomic snapshot, partitioning the full-amount atomic snapshot and storing the full-amount atomic snapshot into a corresponding physical backup medium to generate full-amount
metadata; when the
incremental backup task is executed, historical backup
metadata is obtained, a change log in the
target database is scanned according to a historical logic
clock, and the historical blood relationship
topological graph is updated based on a change
record; determining a newly-added storage unit, creating a newly-added atomic snapshot, and storing the newly-added atomic snapshot in a physical backup medium; incremental
metadata is generated. The integrity and accuracy of incremental data are ensured, and the risk of data omission or wrong backup is reduced.