# Turns out database backups are NOT trivial

DevFeed: [Turns out database backups are NOT trivial](<https://devfeed.tech/articles/turns-out-database-backups-are-not-trivial-113330.md>)

Original publisher: [Read original article](<https://stack.convex.dev/database-backups-are-not-trivial>)

Author: Stack

Published: 2026-10-29T15:30:13Z

Content type: article

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [backups](<https://devfeed.tech/topics/backups.md>), [Database](<https://devfeed.tech/topics/database.md>), [database-consistency](<https://devfeed.tech/topics/database-consistency.md>), [transaction-log](<https://devfeed.tech/topics/transaction-log.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [DuckDB](<https://devfeed.tech/topics/duckdb.md>), [clickhouse](<https://devfeed.tech/topics/clickhouse.md>)

Tags: [abstraction](<https://devfeed.tech/tags/abstraction.md>), [agent](<https://devfeed.tech/tags/agent.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [api](<https://devfeed.tech/tags/api.md>), [backing-up](<https://devfeed.tech/tags/backing-up.md>), [backup](<https://devfeed.tech/tags/backup.md>), [backups](<https://devfeed.tech/tags/backups.md>), [convex](<https://devfeed.tech/tags/convex.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [production](<https://devfeed.tech/tags/production.md>), [tables](<https://devfeed.tech/tags/tables.md>)

## AI overview

A row-by-row backup of a changing database can combine records from different moments and describe a state that never existed. Convex's data sync avoids this by alternating between reading table rows and catching up on the document log, keeping its snapshot within the retention window; it reports `upToDate` when the copy is consistent. Pages may contain repeated rows and arrive out of timestamp order, so callers must apply truncates and values and save pages safely. The endpoint requires a Pro plan and charges for database reads and bandwidth; its cursor can resume syncing within the deployment's retention window. Convex also offers dashboard and CLI backups, scheduled backups on Pro, and faster, cheaper physical backups for dedicated deployments, though those cannot be downloaded or inspected. For analytics at scale, the article says Convex still recommends its Fivetran connector.

## Source excerpt

I thought backing up a database was simple, you just loop over the tables and copy the rows out. Nipunn sat me down at a whiteboard and showed me why that can give you a backup of data that never existed, and how Convex gets around it.