Skip to content

Instantly share code, notes, and snippets.

@schuerg
Last active January 27, 2019 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schuerg/b17898cce45d4111abdbbb08174a735f to your computer and use it in GitHub Desktop.
Save schuerg/b17898cce45d4111abdbbb08174a735f to your computer and use it in GitHub Desktop.
[Crontab template header] Crontab header for remembering crontab syntax. #linux #cron
# Do every X intervals: */X
# For multiple values use commas: 3,12,47
# Dump output: >/dev/null 2>&1
# Aliases: @reboot, @yearly, @monthly, @weekly, @daily, @hourly
# Crontab generator: https://crontab-generator.org/
SHELL=/bin/sh
# If empty "", then no mail is sent
MAILTO=""
CRON_TZ=Europe/Berlin
RANDOM_DELAY=5
PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:$PATH
# +----------------------- Minute (0-59)
# | +------------------ Hour (0-23)
# | | +------------- Day Of Month (1-31)
# | | | +-------- Month (1-12)
# | | | | +--- Day Of Week (0-6) (Sunday = 0)
# | | | | |
# * * * * * COMMAND
# * */6 * */15 * mysqldump -u root -pPASSWORD database > /root/db.sql >/dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment