Summary: Vixie cron converts any unescaped % character inside a command into a newline and passes the rest to standard input, silently breaking date +%Y-%m-%d backup scripts.

Broken Pattern

0 2 * * * /usr/bin/pg_dump app > /backups/app-$(date +%Y-%m-%d).sql

Production-Safe Fix

0 2 * * * /usr/bin/pg_dump app > /backups/app-$(date +\%Y-\%m-\%d).sql

Why This Happens

In crontab(5), unescaped percent signs terminate the shell command line and send everything after the first % as stdin to the command. Always escape every % as \% or move complex date formatting into a standalone shell script.