Skip to content

Reference The 25 checks

Backups

Health check backups

What it reads

The age of the newest file in each backup folder named in /etc/kiyesi/config.yaml, and that file itself, read through once when it is new (gzip, zip, tar, and PostgreSQL and MySQL dumps), to check it would restore. Nothing is unpacked or sent.

Does it need root?

It needs root for part of what it reads. Backup folders are often readable only by root. Without root, that part is skipped and never counted as passed. Run sudo kiyesi scan to include it.

When it passes

The report lists it as passed, in these words:

  • Newest backup is age oldopens

What it can find

Critical

The newest backup in path would not restore: reason

A backup that cannot be opened restores nothing, and you find out on the worst day. The backup job may have stopped halfway, or the disk filled up while it wrote file.

Fix, to review and run yourself
Run the backup job by hand, check it finishes without errors, then: sudo kiyesi scan
Warning

No backup is set up for Kiyesi to check

This server keeps a database of its own. Without a backup, a failed disk or one wrong command loses its data for good. If you do have backups, tell Kiyesi where they are written.

Fix, to review and run yourself
Add the backup folder under backups.paths in /etc/kiyesi/config.yaml
Warning

No backup found in path

The backup folder is set up but holds no files, so the backup job is not writing there.

Fix, to review and run yourself
Find the job that writes it: sudo grep -ril backup /etc/cron* /var/spool/cron 2>/dev/null, and systemctl list-timers --all | grep -i backup
Warning

Newest backup is age old

Backups are expected every limit hours. The last one was written on when.

Fix, to review and run yourself
Find the job that writes it: sudo grep -ril backup /etc/cron* /var/spool/cron 2>/dev/null, and systemctl list-timers --all | grep -i backup
Warning

The newest backup in path is size, down from before

A backup that suddenly shrinks is often a failed dump: a database that could not be reached, a changed password, or a table that went missing. Check file holds your data.

Fix, to review and run yourself
ls -lh path

When it is skipped

A skipped check never counts as passed. The report says why, in one of these sentences:

  • this server keeps no database of its own: its data is in where, backed up there by its provider's plan, which Kiyesi cannot see from here. Check backups are on in its settings: some free plans keep none
  • backups go to to, which Kiyesi cannot open from here to check their age. To have it check them, name a folder on this server they are also written to under backups.paths in /etc/kiyesi/config.yaml
  • found no database on this server, in its containers or in its apps' settings. If it keeps files that matter, add the folder their backups are written to under backups.paths in /etc/kiyesi/config.yaml