Config Files · 1 file
Sample Crontab File
A crontab schedules recurring commands on Unix systems. Our sample is realistic and valid for its tool, with fake hosts and secrets.
crontab · 618 B
crontab
A crontab with environment variables and schedules for every minute, hourly, daily, weekly, monthly and @reboot jobs, each commented. All hosts, keys and secrets are fake.
CC0 · free for any use · Verified by an independent tool · Report a problem
# Sample crontab — samplefiles.com
SHELL=/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin
MAILTO=ops@example.com
# ┌ minute ┌ hour ┌ day of month ┌ month ┌ day of week
# * * * * *
*/5 * * * * /opt/scripts/health-check.sh # every 5 minutes
0 * * * * /opt/scripts/rotate-cache.sh # hourly
30 2 * * * /opt/scripts/backup.sh >> /var/log/backup.log 2>&1 # daily at 02:30
0 9 * * 1 /opt/scripts/weekly-report.sh # Mondays at 09:00
0 0 1 * * /opt/scripts/monthly-invoices.sh # first of the month
@reboot /opt/scripts/warm-cache.shFile details
Download from the command line
curl -L -o crontab https://files.samplefiles.com/config/crontab/crontabwget https://files.samplefiles.com/config/crontab/crontabhttps://files.samplefiles.com/config/crontab/crontabprintf '%s %s\n' e3e6b67b05f16ba4f01f76f5385c8a1df51d41889da7f985a5e49efd8cea659f crontab | shasum -a 256 -cOr check the download in your browser with the checksum calculator.