One approach to safely backing up live data is to temporarily disable write access to data during the backup, either by stopping the accessing applications or by using the locking API provided by the operating system to enforce exclusive read access.
To avoid downtime, high-availability systems may instead perform the backup on a snapshot-a read-only copy of the data set frozen at a point in time-and allow applications to continue writing to their data.