Infrastructure · Cron
OHM Crashes Backup
Nightly Postgres dump for the ohiomotocrashes database with 14-day retention.
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
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
/etc/cron.d/omc-backup
/home/ubuntu/backups/omc
Runbook
Commands
docker exec ohiomotocrashes-db-1 sh -c 'pg_dump -U "$POSTGRES_USER" "$POSTGRES_DB"' | gzip > /home/ubuntu/backups/omc/omc-$(date +%F).sql.gz
cat /etc/cron.d/omc-backup