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

crontab — first lines
# 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.sh

File details

Size
618 B (618 bytes)
MIME type
text/plain
SHA-256
e3e6b67b05f16ba4f01f76f5385c8a1df51d41889da7f985a5e49efd8cea659f
MD5
35da0f7f5a24c6fa917dd6175c602c0c

Download from the command line

curl -L -o crontab https://files.samplefiles.com/config/crontab/crontab

Or check the download in your browser with the checksum calculator.