The embodiment of the invention provides a
database backup method and device,
electronic equipment and a storage medium, and the method comprises the steps: triggering a
database to refresh a
data page in a shared cache region to a disk under the condition that a preset time node is reached, and locking the file operation of switching a pre-write log by the
database; after basic snapshot data of the database is created and stored, the file operation is unlocked, multiple pre-write logs output by the database after the file operation is recovered are monitored, incremental
log data are generated based on the multiple pre-write logs, and the incremental
log data are stored; determining an initial file identifier corresponding to the earliest pre-written log in the incremental
log data, and marking other pre-written logs in the incremental log data in sequence based on the initial file identifier; and creating
metadata information corresponding to the basic snapshot data. According to the scheme, the non-interruption
backup of the database is realized, the
data consistency and integrity are guaranteed, the
backup data volume is reduced, and the backup efficiency is improved.