Your website backed up last night. It will back up again tonight. And if the script is written the way most default scripts are written, it took your whole site offline for a couple of minutes while it did it - same time, every night, like clockwork.

The problem, in plain terms

A backup script needs to take a snapshot of your database, a consistent picture of the data at one moment in time. To do that cleanly, the script pauses whatever is writing to the database while the snapshot runs. That part is correct.

The problem is scope. A default script often pauses everything: the background worker, the import jobs, the upload queue, and the public website and sign-in pages too. The database dump takes maybe two minutes. For those two minutes, anyone who lands on your site gets an error page.

This is exactly what was happening on a booking site we run. The backup fired at 04:00 UTC every night and paused the whole stack. A visitor hitting the site in that window got an outage. Nothing was broken. The backup completed fine. The site came back up. And the next night it happened again.

The reason it goes unnoticed: 04:00 is quiet. Traffic analytics show almost nothing. Nobody calls to complain. The error page disappears before anyone checks. But “almost nothing” is not nothing - and the window is predictable, which makes it worse. If a customer in a different time zone, a night-shift worker, or an automated system that checks your availability hits your site at the wrong moment, they get a wall.

Work out whether it matters for your business

Before you do anything, run this check on your own numbers. Pull up your analytics and look at traffic between midnight and 06:00. If it is genuinely flat - a handful of sessions a month, none of them converting - the problem is real but the cost is low. If you have overnight visitors, international customers, or any automated integrations pinging your site, the maths changes fast.

A rough way to think about it: how many visits do you get overnight per week, what percentage of your daytime visits turn into an enquiry or a sale, and what is an enquiry worth to you? If two minutes of downtime at a predictable time catches even one of those visits a week, you can put a number on it. That number is what the problem costs you.

Three options

Option one: live with it. If your overnight traffic is genuinely zero and you have no integrations that run at night, this is a reasonable choice. Keep the backup as it is, document when it runs, and revisit if your business hours or customer base change. No cost, no work, honest trade-off.

Option two: upgrade to a hosting tier that backs up without pausing anything. Some managed hosting platforms offer hot backups, a method that reads the database without locking it, so the site never pauses. This works. It is a legitimate solution. The trade-off is that it usually means a higher hosting tier, sometimes a significant jump in monthly cost. If you are already paying for a tier that includes it and nobody has switched it on, that is worth checking first. If you are not, compare the cost of the upgrade against what the overnight window is actually costing you in the maths above.

Option three: fix the scope of what the backup pauses. This is the option we took. The backup does not need to pause the public website. It does not need to pause the sign-in page. It needs to pause the things that write to the database during the snapshot: background workers, import jobs, upload queues. Pause those, take the dump, resume them. The database snapshot is still consistent. The public site never goes dark.

On the booking site, the fix rewrote the backup script to stop only the background worker, import jobs and upload jobs during the snapshot window, while leaving the website and sign-in services running throughout. We scheduled a check for the following night to confirm the live site stayed up through the backup window. It did.

Here is what that kind of selective pause looks like in a script that manages services individually:

systemctl stop worker.service   # pause background jobs
systemctl stop importer.service # pause import queue
pg_dump YOUR_DB_NAME > /backups/nightly.sql # take the snapshot
systemctl start importer.service
systemctl start worker.service  # resume - site was never touched

The exact commands depend on how your stack is set up - the principle is the same. Stop only what writes. Leave what serves.

The question to ask your host or developer right now

You do not need to understand the script to protect yourself. You need to ask one question: “When the nightly backup runs, exactly which services does it pause, and does that include the public website?”

If the answer is “everything” or “I’m not sure”, that is the conversation to have. A backup process should be scoped to what it actually needs to freeze, not the whole stack by default. That is a configuration decision, not a rebuild, and it should not require a bigger bill.

One honest recommendation

Fix the scope before you upgrade the hosting. The upgrade solves the symptom; the scope fix solves the cause. If your host cannot separate services in the backup script, that is a useful thing to know - it tells you something about how much control you actually have over your own site.

If you want us to look at your backup schedule and tell you exactly what it pauses, we can do that. We’ll check the script, confirm whether the live site stays up through the window, and tell you plainly what needs changing - if anything. If it’s already set up correctly, we’ll say so. Find out what that looks like on our services page.