What runs by itself
This page is for you after setup. It lists everything the server does on its own, when it does it and where you see the result, then gives a short routine for the few jobs that need a person.
The schedule
Three timers run on the server at night. All of them follow the quiet hour you chose on the last setup page, in your site's time zone. To change it, open Admin Panel → Site → Site, card Running the site. The timers move by the next night.
With a quiet hour of 04:00:
| When | What | Where you see the result |
|---|---|---|
| Every day, 04:00 | Backup of the three databases, the homeserver's media and signing key, and the install's keys and settings file, to your backup target. Old snapshots are thinned to 7 daily and 4 weekly. | The Doctor's Backups rows, and the backups line of sudo blackbranch status |
| Sundays, 04:30 | Restore check: the newest backup is restored into a throwaway container and checked. The live site is not touched. | The Doctor's row The newest backup restores |
| Every day, 04:45 to 04:55 | Update check: the server reads the signed release feed. A security release installs itself, but never while you are live. A feature release waits for you. Each server picks a random minute in that window, so they do not all ask at once. | Admin Panel → Updates, and the Doctor's Updates rows |
| Every day, on the operating system's own schedule | Operating system security updates through unattended-upgrades, which the installer switches on |
The Doctor's row Security updates install themselves |
A fourth timer runs every morning at about 09:00 in the server's own time, whatever the quiet hour, so its news arrives while you are awake: the daily check looks at free disk, the newest good backup and, in direct mode, the certificates. It stays silent when all is well. See Alerts from the server.
If the server was off at the scheduled time, the missed job runs soon after it starts. While an update is running, the nightly backup and the weekly check skip their turn, because the update makes its own backup.
Two more things run without a schedule:
- At every boot, the server finishes any update a power cut interrupted. It starts the site again, or goes back to the release before. See If an update is cut off.
- When you press a button in the Admin Panel that needs the server (restart a service, Check again on the Doctor, Apply on Updates), a watcher on the server carries it out. See How the site asks the server.
What tells you, and what waits for you to look
Two kinds of alert can reach you, once you say where they go:
- The server's alerts, to an ntfy topic or an email: a failed backup or restore check, an update that went back or stopped, low disk, no recent good backup, and a certificate near its end in direct mode. They go to the site's alerts topic below, or to a topic or email you set in
.envinstead. See Alerts from the server. - The site's alerts, to your phone through ntfy: payment and chat problems the chat service notices. You set them in Admin Panel → Site → Site, card Alerts to your phone. See Alerts pushed to your phone.
The rest waits on its page until you look. The Doctor shows a red row when you open it. A payment that failed, was refunded or was disputed is listed in Admin Panel → Payments → Payment history.
A routine for you
| How often | What | How long |
|---|---|---|
| Weekly, and after any change at Stripe, PayPal or a platform | Open Admin Panel → Doctor and read every row that is not green | 2 minutes |
| Weekly | Look at Admin Panel → Payments → Payment history for failed, refunded or disputed payments | 2 minutes |
| When Admin Panel → Updates offers a feature release | Read its notes, then press Apply at a time you are not live. A backup is made first, and the site is down for a few minutes. | 10 minutes |
| Monthly | Run sudo blackbranch status. The backups line names the target the last backup went to (for example to s3). Check it is the one you expect. |
1 minute |
| Every few months | Practise with sudo blackbranch restore latest --verify, and make sure you can still find the backup passphrase and your copy of .env |
5 minutes |
| After any email from your server provider, domain registrar or Cloudflare | Check the Doctor's Front door rows | 1 minute |
Recommended: put the weekly Doctor check in your calendar, right after a regular stream. A payment webhook that was quietly switched off shows there and nowhere else.
Next: The server command