Skip to content

Setting a backup retention policy for WordPress that actually works

Most WordPress retention policies are picked from a dropdown and never revisited. Here is how to size retention against real recovery scenarios on production.

The retention dropdown on a managed WordPress plan asks for a number of days. The number gets picked once during onboarding, never revisited, and turns out to be wrong the day a corruption is discovered four weeks after it happened.

What’s happening

Retention isn’t a storage decision. It’s a “how far back do we need to go” decision driven by detection latency, not by how much disk you’re willing to buy. The three failure modes that drive retention on production WordPress:

  • Plugin or editorial mistake — usually detected within 24 to 72 hours. A 7-day retention covers this comfortably.
  • Silent data corruption — bad import, broken cron job rewriting post meta, an integration that wrote junk into wp_options. Detection latency ranges from days to a month, often surfaced when a report doesn’t match a known-good baseline.
  • Compromise with delayed discovery — credentials leaked, attacker dwells, content drift is noticed weeks later. Industry detection latency for small-to-mid web compromises commonly runs into weeks, not days.

A 7-day retention is sufficient for case one. For cases two and three, retention needs to span the realistic detection window, or you’ll restore from a snapshot that already contains the problem.

How to verify

Look at the JetBackup destination configuration and the actual on-disk retention, not just the policy setting:

# Inspect retention on the active backup job
jetbackup5api -F getBackupJob -D '{"_id":"<job-id>"}'

# Count actual snapshots present per account
jetbackup5api -F listSnapshots -D '{"account":"acmewp"}' | jq '.data | length'

If the policy says 30 days but listSnapshots returns 7 entries, retention is being silently truncated — usually because the destination is filling up or a prune job is misconfigured.

The fix

The policy we run on managed WordPress, three tiers, with each tier in a different destination:

  1. Daily, 14 days, on-host (or near-host). Fast restores for the plugin-mistake case. JetBackup local destination or near-host S3.
  2. Weekly, 12 weeks, off-host. Covers the corruption-discovery window. Separate provider, separate credentials.
  3. Monthly, 12 months, cold storage with object lock where supported. Covers delayed-discovery compromise, regulatory ask, and the “what did the site look like in February” question.

Three tiers, three different storage classes, three different cost profiles. The total cost is meaningfully lower than the cost of one bad restore against a snapshot that turned out to be too recent.


Stack Harbor sets retention policies as part of environment management and audits them quarterly. If your retention was picked from a dropdown three years ago, book a backup review.

Stack Harbor operates production WordPress at scale — see enterprise WordPress operations for the managed model, or book a WordPress consult for a written read of your current shape.