How to Back Up Cloud Databases Without Stopping Your App
You can back up a cloud database while it stays online. Learn how hot backups work, how to set recovery targets, and how to prove a restore works.

Backing up a cloud database without stopping your app is possible, and for most small teams it is the only sensible approach. Your customers use your product around the clock, and a nightly shutdown for a backup is hard to justify for a store, a booking system or a software service that never really closes.
The good news is that modern databases are designed to be copied while they keep working.
The method is called a hot backup. The database stays online, keeps processing transactions, and the backup captures a consistent copy by recording the changes made during the copy and replaying them at restore time.
That sounds complex, but managed cloud databases and a few well-known tools handle most of it for you, if you set them up correctly.
This guide explains how hot backups work in plain terms, how to choose between the main backup types, how to set recovery targets your team can actually meet, and how to prove the backup restores before you need it.
The goal is a backup routine you can trust, not a backup job you hope is working.

How a hot backup works without downtime
The challenge with copying a live database is consistency. While the backup copies data, applications keep changing it, so a plain file copy could capture half of a transaction and produce a database that will not restore cleanly.
Hot backup solves this with the transaction log, which records every change in order and makes the copy consistent at restore time.
The process follows four steps. First, the database marks a starting point, such as a checkpoint or a log position. Second, it copies the data files or blocks while continuing to serve queries. Third, it captures the log records for every change made during the copy.
Fourth, at restore time, it replays those log records on top of the copied data until it reaches a consistent state.
That log is also what makes point-in-time recovery possible. Because the log records changes in order, you can replay it up to a chosen moment, such as just before someone deleted the wrong table, rather than only to the time of the last full backup.
That ability turns a backup from a blunt instrument into a precise recovery tool.
Most managed cloud databases offer this behaviour by default or with a simple setting. Automated backups on managed services usually take a snapshot while the database stays online, and they keep transaction logs for a retention period you choose.
The key is to check that those features are actually turned on, and to know how long the logs are kept, before you assume you are protected.
Logical dumps, snapshots and log shipping
There are three main ways to back up a cloud database, and they solve different problems. A logical dump exports the data as SQL statements or an engine archive, using tools such as pg_dump for PostgreSQL or mysqldump for MySQL.
It is portable, easy to inspect, and simple to restore into a newer version of the same engine.
A physical backup copies the data files themselves, or takes a storage snapshot of the volume that holds them. It is faster to restore for large databases, because restore is mostly a file copy, and it pairs naturally with log shipping for point-in-time recovery.
Tools such as pgBackRest, Barman and Percona XtraBackup handle this pattern, and managed snapshots do something similar in the cloud.
Log shipping is the third piece, not a standalone backup. It continuously copies transaction log records, such as PostgreSQL WAL files or MySQL binary logs, to a safe location. Combined with a full backup, it lets you roll forward to any point in time.
Without a full backup to start from, the logs alone are not enough, so treat them as part of a pair.
For most applications under a few hundred gigabytes, a scheduled logical dump plus the managed service’s automated backup is the right default. It is simple, portable and easy to test.
Move to physical backups with log archiving when you need recovery to a specific second, or when restoring from a dump takes longer than your business can afford to be down.
Set recovery targets before you choose a schedule
Two numbers decide your backup schedule. The recovery point objective, or RPO, is how much data you can afford to lose, measured in time. A nightly backup means up to twenty-four hours of writes could be gone. An hourly log backup means at most an hour could be lost.
Choose the RPO by asking the business what a day, an hour or fifteen minutes of lost orders would actually cost.
The recovery time objective, or RTO, is how long you can afford to be down while you restore. A small dump may restore in minutes, while a large database can take hours to copy back, replay logs and verify.
Measure restore time in a test, do not guess it, because the size of the database and the speed of the storage both matter more than most teams expect.
Write both numbers down and agree them with the people who own the product, not just the engineers. A target that the business has never seen is not a target, it is a hope.
Once the numbers are agreed, design the schedule to meet them: full backups at a sensible interval, log backups often enough to meet the RPO, and a restore test often enough to prove the RTO.
Keep the schedule realistic for your team’s size. A backup plan that needs daily manual work will be skipped on busy days, which are exactly the days when a backup matters most.
Automate the schedule, automate the alerts when a backup fails, and make the failure alert as loud as a production outage, because a failed backup is a quiet disaster waiting to happen.
Where to store backups so they survive the real failures
A backup is only useful against the failures it was designed for, so start from the failure list. Disk or server loss means backups must live somewhere else, not on the same volume as the database. Human error, such as a deleted table, means you need several points in time, not just last night’s copy.
A bad migration means you need a copy from before the deploy, kept long enough to notice the damage.
Compromised credentials change the design again. If an attacker gains the server’s keys, they can delete the database and every backup that key can reach.
Store at least one copy in a separate account or bucket with different credentials, and make older backups immutable where your provider supports it, so they cannot be overwritten or deleted within their retention period.
Account problems are the failure teams forget. A billing dispute, a suspended account or a provider outage can lock you out of everything stored with one provider.
Keep a copy of your most important backups with a second provider, or at least in a separate account and region, so a problem with one account does not remove your only way back.
Encrypt backups both in transit and at rest, and control who can read them. A backup contains the same sensitive data as the live database, so it deserves the same protection.
Limit access to the backup bucket, use separate credentials for writing backups and reading them, and test that a person who should not have access really does not.
Automate the routine and test the restore
Automation is what turns a backup plan into a backup habit. Schedule full backups, schedule log backups, set retention rules that delete old copies automatically, and send an alert to a channel the team actually reads when a backup fails or is missed.
A backup job that fails silently for six weeks is a common story, and it is entirely preventable with a simple alert.
Include a checksum or verification step after each backup. A file that was written but is corrupt is no better than no file at all, and a backup that was truncated because a disk filled up will fail at the worst possible moment.
A quick integrity check after the backup runs is cheap, and it catches the most common silent failures early.
Then test the restore, regularly and for real. Restoring into a separate test environment proves that the backup is complete, that the team knows the steps, and that the restore time matches your RTO.
Test at least monthly for a small team, and test after any major change, such as a database upgrade, a migration or a change of backup tool.
During the test, time each step and write down what was slow or confusing. Did the team need a password nobody could find? Did the restore need a version of the engine that was no longer available? Did the log replay take far longer than expected?
Each answer is a fix for the runbook, and the runbook is what the team will follow at two in the morning when the real restore is needed.
Replication is not a backup. A replica copies mistakes too, including an accidental delete or a bad migration, so keep a separate backup even when you have a replica.
Mistakes that leave small teams unprotected
The most common mistake is never testing a restore. Teams run backups for months, assume they work, and discover the problem on the day they need them, when the backup is empty, corrupt or stored on the same disk that just failed.
A restore test is the only proof that matters, and it should be a scheduled task, not a good intention.
Another mistake is keeping only one copy, in one place, for one night. That single copy is vulnerable to the same failures as the database, and it offers no way back from a mistake discovered a week later.
Keep several points in time, keep them in more than one location, and keep the retention period long enough to cover the time it takes to notice a slow-moving problem.
Teams also forget to back up the things around the database. Configuration, user accounts, permissions, scheduled jobs and connection settings are all part of the system, and restoring data without them can leave the application unable to connect.
Include those items in the backup or in version control, and check that a restore brings back a working system, not just a set of tables.
Finally, do not let the backup credentials become a single point of failure. If only one person knows the backup password, or only one account can access the backup bucket, the team is stuck when that person is away.
Store credentials in a secrets manager, document the access steps, and make sure at least two people can perform a restore.
Backups are part of a wider safety net, and the most common failures are avoidable. Our guide to five cloud backup mistakes that cost small teams their data covers the traps that turn a backup plan into a false sense of security.
Conclusion: a backup you have tested is the only backup that counts
Backing up a cloud database without stopping your app comes down to three habits: use a hot backup method that keeps the database online, keep log backups so you can recover to a point in time, and store copies where the failures you fear cannot reach them.
None of those steps requires downtime, and none of them is expensive for a small team.
Your next step is to check your current setup today. Confirm that automated backups and log retention are turned on, note your RPO and RTO, and schedule a restore test into a test environment this week. If the test succeeds, you have a backup you can trust.
If it fails, you have found the problem on a quiet day, which is exactly when you want to find it.