K Kituwa Automations
--:--
OC

Infrastructure · Cron

OHM Crashes Backup

Nightly Postgres dump for the ohiomotocrashes database with 14-day retention.

Healthy Cron: 30 3 * * *

Control panel

Run it now or change the timing.

Read-only view. Unlock the controls to run jobs, post now, or change schedules.

Actions

OHM Crashes Backup controls

Change the cron schedule

Five fields: minute hour day-of-month month day-of-week.

Timing

Cron job and output.

The control panel above can run this job now or rewrite its five-field cron schedule.

Cron

/etc/cron.d/omc-backup

Schedule
30 3 * * *
Command
root docker exec ohiomotocrashes-db-1 sh -c 'pg_dump -U "$POSTGRES_USER" "$POSTGRES_DB"' | gzip > /home/ubuntu/backups/omc/omc-$(date +\%F).sql.gz && find /home/ubuntu/backups/omc -type f -name "omc-*.sql.gz" -mtime +14 -delete
Health
Healthy

Logs

Latest output

No log lines available.

Paths and runbook

Where it lives, how to run it.

Token values are never rendered. Copy paths and commands directly from here.

Paths

Files and services

Cron /etc/cron.d/omc-backup
Backups /home/ubuntu/backups/omc

Runbook

Commands

Run now
docker exec ohiomotocrashes-db-1 sh -c 'pg_dump -U "$POSTGRES_USER" "$POSTGRES_DB"' | gzip > /home/ubuntu/backups/omc/omc-$(date +%F).sql.gz
Cron file
cat /etc/cron.d/omc-backup