Backup Schedule Generator

Decide what to back up, how often and for how long — before you write a line of cron. Add one row per data source (documents, photos, databases, VMs), give each its size, change rate and criticality, and the generator picks a sensible frequency for each, applies a GFS retention policy (grandfather–father–son: keep N dailies, then one per week, then one per month), estimates how much disk the retained snapshots will actually take under your chosen dedup model, and checks the whole plan against the 3-2-1 rule. The result is a per-source schedule table with next-run dates, a plain-English findings list, and exports you can paste straight into a crontab, a set of systemd timers, or Windows Task Scheduler via PowerShell — plus a shareable plain-text plan. Everything is computed in this tab: nothing is uploaded and nothing is executed.

100% private. The schedule, the storage estimate and every export are generated with JavaScript in this browser tab. Your source names, sizes and retention choices never leave the page — there is no server-side calculation and nothing to send.

1. Data sources

One row per thing you would be sorry to lose. The change rate drives the suggested frequency when you leave it on auto: high → daily, medium → weekly, low → monthly.

The starter set is a realistic small-business example you can edit — not a lock-in template.

2. Retention & storage

3. The 3-2-1 rule

Three copies of your data, on two different media types, with one copy offsite. Describe what you actually have — the findings panel grades the plan against it.

Offsite copy A fire, theft or flood takes every on-site copy at once. Offsite is the part of 3-2-1 that survives those.

Results

Ready
Retained storage
—
across all sources
Source data
—
originals, all sources
Runs / week
—
scheduled backups
Next run
—

Schedule

Checks on this plan

Export

How to use it

Start in panel 1 and add one row per data source. Name it, pick its type (the type only affects the wording in exports), enter its current size in GB, and be honest about the change rate: a photo library that gets a phone sync every night is high, a tax folder that sees two uploads a year is low. Leave frequency on auto to accept the suggestion from the change rate, or override it per source. Set the time you want each backup to start — spread heavy sources apart so they do not all hammer the same disk at 02:00.

Panel 2 sets retention and storage. A GFS preset fills the keep-counts for you (the standard 7/4/12 keeps a week of dailies, a month of weeklies and a year of monthlies); switch to custom to tune them. The storage model decides how much each retained snapshot is assumed to cost: full copies, or the ~20% and ~10% per-extra-snapshot figures that incremental and deduplicating tools like restic typically achieve on real data. Enter your backup disk size so the capacity check can compare, and your monthly growth rate so the doubling-time warning is meaningful.

Panel 3 is where most backup plans quietly fail: describe the copies, media types and offsite copy you actually have, and read the verdict in the findings list. When the plan looks right, pick an export format and copy or download — cron lines for a Linux crontab, systemd timer units for a modern server, a PowerShell script for Windows Task Scheduler, or the plain-text plan to pin to the wiki.

Worked example: the starter set

The page loads with four sources that form a coherent small-business plan: Documents (120 GB, high change rate → daily at 02:00), Photo library (800 GB, medium → weekly on Sunday at 03:00), Postgres database (40 GB, high → daily at 01:30) and a VM image (50 GB, low → monthly on the 1st at 04:00). With the standard 7/4/12 retention and full-copy storage:

  • Daily sources keep 7 + 4 + 12 = 23 snapshots each. Documents is 120 GB × 23 = 2.8 TB of retained data; the database adds another 920 GB. That is the number most people get wrong by a factor of ten — they budget for one backup, not the retention window.
  • The weekly photo library keeps 4 + 12 = 16 snapshots (its stream feeds the weekly and monthly tiers), and the monthly VM image keeps 12.
  • Switch the storage model to incremental + dedup and the extras cost ~20% of size: Documents drops from 2.8 TB to roughly 370 GB, because 22 of its 23 snapshots are differences, not full copies.
  • The capacity check runs against your disk. At the default 4 TB disk with full copies the estimate plus 15% headroom fits; shrink the disk to 2 TB and the findings panel turns red before you have bought anything.
  • The 3-2-1 check fails by default on purpose: two copies, one media type, nothing offsite. Bump copies to 3, add cloud storage as a second medium, tick offsite — and the plan passes with three green findings.

Export as cron and the database comes out as 30 1 * * * /usr/local/bin/backup.sh postgres >> /var/log/backup_postgres.log 2>&1 — the exact line you would have typed by hand, with the log redirect and the slugified name already in place.

How it works

Each source becomes one scheduled job plus a retention count. The effective frequency is the override you set, or the suggestion from the change rate (high → daily, medium → weekly, low → monthly). The retained snapshot count depends on which tier the source’s stream feeds: a daily source keeps dailies + weeklies + monthlies snapshots, a weekly source keeps weeklies + monthlies, a monthly source keeps monthlies, and an on-demand source keeps the last one. Retained storage is then the first snapshot at full size plus every extra snapshot at the dedup factor you chose (100%, 20% or 10%), summed over all sources.

The exports are mechanical translations of that table. Cron lines use the standard five-field schedule — daily is M H * * *, weekly is M H * * DOW, monthly is M H 1 * * — with a log redirect per source so a failed run leaves a trace. The systemd export emits one .timer unit per source (with the matching OnCalendar= expression) plus a shared service template you point at your backup command. The PowerShell export calls Register-ScheduledTask with a daily, weekly or monthly trigger per source. Next-run dates are computed from your machine’s current time, so the “next run” column is what will actually happen, not a generic weekday label.

Common mistakes this generator catches

  • Budgeting storage for one backup instead of the retention window. A 120 GB folder with 7/4/12 retention holds 2.8 TB of snapshots under full copies, not 120 GB. The retained-storage stat and the capacity check make the real number impossible to miss, and the dedup model shows what restic-class tools would actually store.
  • A plan that fails 3-2-1 without anyone noticing. Two copies on one kind of disk in one room is the default state of most home labs — and it is exactly what a fire or a ransomware wiper takes in one event. The findings list grades all three legs separately, so you know which one to fix next rather than getting a single vague “improve your backups”.
  • Every job starting at 02:00. When the database, the documents and the photo library all fire in the same half hour they compete for the same disk and the same network link, and one slow run masks the others. The overlap warning names the sources that land within thirty minutes of each other so you can stagger them.
  • A critical source set to on-demand. “I will remember to back up the database” is not a schedule. If a source marked critical has no automatic frequency, the findings panel says so in plain English instead of letting it sit in the table looking fine.
  • Retention that outgrows the disk. Data grows even when you do not think about it; at 3% per month a library doubles in roughly 24 months. The doubling-time finding tells you when to revisit retention or buy the bigger drive — before the backup job starts failing with ENOSPC.
  • Cron lines that run but leave no trace. A bare command in crontab swallows its output. Every generated line appends to a per-source log file, so when a restore is needed you can see which runs succeeded and what the last failure said.

Luke Keam
Spot a bug or want a custom utility built? I'd love to hear from you. Get in touch
Luke Keam | techgeek.biz