Automation Center

6 active workflows · 234 runs this week · 98.3% success

Active Automations

6 total
NameTypeScheduleLast RunStatusAction
Nightly Postgres BackupBash0 3 * * *3h agosuccess
Restart Minecraft @ 6AMBash0 6 * * *9h agosuccess
Sync Cloud PhotosPowerShell*/15 * * * *4m agosuccess
Alert on Disk > 85%Webhookon eventyesterdaywarning
Renew Let's EncryptBash0 0 1 * *12d agosuccess
Docker Image PruneBash0 4 * * 02d agofailed

Script Editor · backup.sh

#!/usr/bin/env bash
set -euo pipefail

BACKUP_DIR=/srv/backups/postgres
TS=$(date +%Y-%m-%d-%H%M)
DEST="$BACKUP_DIR/pg-$TS.sql.zst"

docker exec postgres-main pg_dumpall -U postgres \
  | zstd -19 -o "$DEST"

# Retain last 14 days
find "$BACKUP_DIR" -name "pg-*.sql.zst" -mtime +14 -delete

curl -sS -X POST "$TG_WEBHOOK" \
  -d "Backup OK: $(du -h "$DEST" | cut -f1)"

Templates

Recent Executions

14:00:01✓ Sync Cloud Photos · 3.2s
13:45:01✓ Sync Cloud Photos · 2.9s
04:00:00✗ Docker Image Prune · 12.4s
03:00:01✓ Nightly Postgres Backup · 48.1s