Skip to content

Instantly share code, notes, and snippets.

@dbuteau
Last active June 14, 2019 13:48
Show Gist options
  • Save dbuteau/200aee1aa68b14fa7c41a2240ffdfbc9 to your computer and use it in GitHub Desktop.
Save dbuteau/200aee1aa68b14fa7c41a2240ffdfbc9 to your computer and use it in GitHub Desktop.
crontab header for reminder
#┌──────────────────────────────────────── minutes: 0-59, */2 every 2 minutes
#│ ┌────────────────────────────────────── Hours: 0-23
#│ │ ┌──────────────────────────────────── Day: 1-31
#│ │ │ ┌────────────────────────────────── Month: 1-12
#│ │ │ │ ┌──────────────────────────────── WeekDay: 0-7; Sunday=0, Saturday=6
#│ │ │ │ │ ┌───────────────────────────── user which will exec the command (can be not supported on somes systems)
#│ │ │ │ │ │
#* * * * * user command to execute
#eg: execute backup at 2h30 and 14h30 from monday to friday
#30 2,14 * * 1-5 root /usr/local/sbin/backup.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment