Skip to content

Public beta The Team plan is free while we test Runbell. Feedback: support@runbell.app

Runbell

Know the night your database backup fails.

pg_dump, mysqldump and backup scripts fail quietly: a full disk, a changed password, a moved server. Runbell expects a ping after every backup and alerts you the first time one doesn’t arrive.

A good starting point
Up db-backup
Schedule
0 3 * * * every night at 03:00
Grace period
1 hour
Alerts
Email and Slack

What goes wrong without anyone noticing

The disk fills up
The dump stops halfway, the script exits, and the newest file in the bucket is a week old.
A password changes
The database password is rotated, and every backup after that fails with an error nobody reads.
The server is replaced
A new machine goes live without the old crontab, and the backups simply stop.

Set it up

  1. Create a check

    Use the schedule 0 3 * * * and a grace period of 1 hour, in the time zone the job runs in.

  2. Add the ping

    Ping at the start and send the exit code at the end. A failed dump then alerts you at once.

  3. Choose who hears about it

    Connect email, Slack, Telegram, SMS or any of the other channels to the project.

/opt/backup.sh

#!/bin/sh
URL=https://runbell.app/ping/your-check-id

curl -fsS -m 10 --retry 5 "$URL/start"
pg_dump -Fc shop > /backups/shop.dump && aws s3 cp /backups/shop.dump s3://my-backups/
curl -fsS -m 10 --retry 5 "$URL/$?"

Tips

  • Send the exit code with /$? so a failed backup alerts you straight away, not after the grace period.
  • The /start ping shows how long each backup takes, and catches one that hangs.
  • Send the end of the log with the ping (curl --data-binary @backup.log) and read it in the event log.

Questions

Does Runbell see or store my backups?

No. It only receives the ping, and the log text if you choose to send it. Your backups stay where they are.

What if the backup runs but the file is empty?

Check the file size in the script and ping /fail when it is too small. Runbell alerts you straight away.

Set up your first check in two minutes.

Create free account