Cron First of Every Month
Expression: 0 0 1 * *
What Does 0 0 1 * * Mean?
- 0 = Minute 0
- 0 = Hour 0 (midnight)
- 1 = 1st day of month
- * = Every month
- * = Every day of week
Common Use Cases
๐ฐ Billing & Invoicing
0 0 1 * * /scripts/generate-invoices.sh- Generate monthly invoices0 8 1 * * /scripts/charge-subscriptions.sh- Process subscriptions at 8 AM
๐ Monthly Reports
0 0 1 * * /scripts/monthly-report.sh- Generate monthly analytics0 6 1 * * /scripts/send-monthly-summary.sh- Send monthly summary
๐พ Monthly Backups
0 2 1 * * /scripts/monthly-full-backup.sh- Full monthly backup0 3 1 * * /scripts/archive-logs.sh- Archive monthly logs
๐งน Maintenance
0 4 1 * * /scripts/cleanup-old-data.sh- Clean old data monthly
Other Monthly Options
0 0 1 * *- 1st of every month0 0 15 * *- 15th of every month0 0 1,15 * *- 1st and 15th of every month0 0 1 * *- Last day of month (use with care)