skbackup snapshots your data every hour, copies every app to a second disk every night, encrypts everything on your own machine before a single byte leaves it, ships it to a bucket you own, and then, once a month, pulls a piece back out of that bucket and checks it hash for hash against the original. If any of that stops happening, you hear about it within hours, not after the disk dies.
skbackup is the backup layer of the SKWorld stack. On servers it is an Ansible role in SKStacks (shipped since SKStacks v2.26.0) that turns the storage host behind a cluster into a self-checking backup machine. On laptops and other endpoints it is a set of documented patterns built on the same engine, restic, the same encryption and the same rule: you have not backed something up until you have restored it.
restic encrypts on your host before upload. The bucket holds ciphertext, the password lives in your vault, and no vendor ever holds your data in readable form.
Copies and uploads read a ZFS snapshot taken after the database dumps, so every app is captured at the same instant. No torn files from a copy that raced a write.
A scheduled restore test reads back from the offsite copy and compares sha256 against the exact snapshot each file came from. Any mismatch, or nothing compared, is a failure.
An hourly check flags any tier that went stale, a pool filling up, a dump that stopped, a copy that suddenly shrank, or a host that stopped answering.
Runs locally on the storage host at night, bandwidth capped and at idle I/O priority, with the cap chosen from measurement, not hope.
Every name a customer sees comes from one brand block, and a test fails the build if a default brand string leaks through. Built for MSPs.
Most backup pages list features. This one lists failures, because that is what a backup is for. Each tier exists to survive something the tier before it cannot. Every one is switched on or off per instance.
| Tier | What it does | Survives | Does not survive |
|---|---|---|---|
| 1 · Snapshots | sanoid snapshots the whole data dataset (36 hourly, 30 daily, 8 weekly, 6 monthly by default) plus a one-command pre-deploy snapshot. | Deletes, bad deploys, fat fingers, ransomware on NFS clients (clients cannot destroy snapshots) | Losing the data disk or the box |
| 2 · Local copy | Per-app copy from a frozen snapshot into a second pool on another disk, with its own daily, weekly and monthly history. | A dead or corrupt data disk, a bad rollback | Losing the box |
| 3 · Dumps | Database dump hooks run before the freeze, and every app's dump directory is checked for freshness. | Turns crash-consistent engine files into portable, testable dumps in every other tier | |
| 4 · Offsite | restic, client-side encrypted and deduplicated, to S3, Backblaze B2, a REST server or any restic backend, upload-capped. | Losing the box, the building, the site | Losing the repository password |
| 5 · Restore test | Monthly: one app restored whole plus random sample files, from the offsite copy, sha256 against their source snapshot. | A backup that exists but cannot be restored | |
| 6 · Checks + alerts | Hourly staleness and health checks, one keyed alert per finding, optional Healthchecks-style pings. | Silent failure of any tier above |
That "does not survive" column is deliberate. A backup product that cannot tell you what it does not cover is asking you to find out the hard way.
The defaults, all of them systemd timers you can move, and every step reading a frozen source rather than live files.
restic finds its parent snapshot by path. Backing up .zfs/snapshot/<name>, which changes nightly, makes it re-read everything. skbackup mounts the snapshot at the same path every night, so a nightly run reads only what changed.
Measured on a single-SSD NFS pool: a copy capped at 40000 KiB/s pushed an NFS write from a cluster node to 45 seconds. At 10000 KiB/s the worst probe was 1.4 s with every service healthy. The default is the second number.
Each app copy has a time budget. A stuck app is killed and the run moves on, so it cannot starve every app after it. A big first seed simply resumes on the next run.
"Succeeded" is not "restorable".
A green backup job tells you a program exited zero. It does not tell you the bytes in the bucket can become your files again. So skbackup asks the only question that matters, on a schedule, from the copy that matters most.
| Check | Flags when |
|---|---|
| Newest snapshot | Older than 120 minutes |
| Newest local copy, per app | Older than 26 hours |
| Last good offsite run, per set | Older than 36 hours (a brand-new set gets a 7-day seed grace and reports PENDING, not STALE) |
| Database dumps | A dump directory has nothing newer than 26 hours, or a dump hook failed |
| Copy shrink | A copy lost more than half its size overnight: a source that emptied, or a run that deleted before it wrote |
| Pools and thin pools | A pool past 80 percent or not ONLINE; an LVM thin pool or volume under the backup pool filling up |
| The host itself | Run from a separate alert host over ssh, an unreachable storage host pages too |
Alerts go wherever you point them: a local log, any command (chat, mail, pager, webhook) with keyed de-duplication, and optional Healthchecks-style success and failure pings whose URL lives in its own root-only file and is never logged.
Every tier comes with its restore path written down, because 3 a.m. is a bad time to work out the command.
| You lost | Restore from | How |
|---|---|---|
| A file, an app, a bad deploy | Tier 1 snapshot | Copy out of .zfs/snapshot/, or clone the snapshot instantly for a big restore. Never roll back the shared dataset: that rolls back every app. |
| The data disk | Tier 2 copy | rsync the app's dated history snapshot back, throttled, with the app stopped. |
| A database | Tier 3 dump | Bring the dump directory back from any tier, then the database's own restore (pg_restore, mysql <). |
| The whole box | Tier 4 offsite | On any machine with restic and the credentials: restic snapshots, then restic restore by set and path. |
| Confidence | Tier 5 report | The monthly rehearsal of tier 4. Read the report. |
Servers are only half of what you cannot afford to lose. The same engine and the same rules extend to the machines people actually work on, and to the keys that unlock everything else.
This one exists because a laptop drive died. Everything on it that was not somewhere else was gone. The pattern below is what we put in place so that it never costs anything again.
Vault passwords, SSH and GPG keys, identity keys: the small files that, if lost, lock you out of every other backup you have. They go offsite with restic to their own bucket, encrypted on the host.
restic forget runs per tag, so pruning one kind of secret never touches another.restic dump and sha256 against the source file.Honest status: these two are documented, supported patterns that you set up from the runbook today. The server tiers above are automated end to end by the Ansible role; the endpoint patterns are not yet an installer.
skbackup's defaults are not guesses. Each of these is in the engine because something went wrong first.
An unthrottled bulk copy once outran another service's health check and caused a long outage. Heavy I/O on a shared pool is a production change.
Copies into a folder on the NFS pool doubled the space used and protected against nothing that loses the disk. A snapshot gives the same safety instantly at zero I/O.
restic's S3 backend reads only the AWS_* credential names. B2 key names in an env file do nothing unless mapped, so skbackup maps them.
A dump sidecar's schedule was measured drifting about 13 minutes a day until it crossed the backup slot. Pin dump schedules, keep the newest two, check freshness.
Decide what to do with legacy data before retention starts, or the space only comes back when the last monthly snapshot holding it expires.
sanoid starts its timer on install. skbackup writes the snapshot policy first, so the timer never runs against a default it did not choose.
skbackup follows the SKStacks vanity-layer pattern. One block in the vault renames the command, the install paths, the systemd units, the alert subjects, the report footer and the restic tags. The engine carries no brand string of its own, and a test renders the whole deploy in white-label mode and fails if any default brand string appears anywhere a customer could see it.
Put the storage host in an inventory group, create the second pool on a different disk, write the vault block, and run one playbook. The play never touches the cluster itself.
Each diagram is a standalone, self-contained HTML page: explorable, with motion and a dark/light toggle. They open in a new tab.
A plain Mermaid version of the component map, which renders directly on GitHub, lives in the repository README.
Today every host knows its own backup health and pages when it slips. Next is seeing the whole fleet at once: a backup dashboard behind SSO that answers "is everything backed up?" in one glance.
Illustration only: a mock-up of the planned grid, not live data.
A grid of green and red runs per host per day, with last run, duration, bytes added, snapshot counts and staleness at a glance.
Every restore test result on the same screen as the backups it proves.
Built from run records each host pushes. No repository passwords and no write keys ever live on the dashboard.
Self-hosted Healthchecks-style pings, building on the success and failure pings the engine can already send.
skbackup keeps what SKStacks runs recoverable, skpatch keeps it current, and skaegis and sksec keep it defended. Secrets live in SKVault. All part of SKWorld, the sovereign AI ecosystem where you own the whole stack, from silicon to soul.