Skip to content

Instantly share code, notes, and snippets.

@dopa
Created March 26, 2013 14:41
Show Gist options
  • Save dopa/5245856 to your computer and use it in GitHub Desktop.
Save dopa/5245856 to your computer and use it in GitHub Desktop.
Crontab for Running MySQL Backups Nightly
#
# * * * * * command to be executed
# - - - - -
# | | | | |
# | | | | +- - - - day of week (0 - 6) (Sunday=0)
# | | | +- - - - - month (1 - 12)
# | | +- - - - - - day of month (1 - 31)
# | +- - - - - - - hour (0 - 23)
# +- - - - - - - - minute (0 - 59)
#
# Alarm clock set to 6:30AM every day
# 30 6 * * * /home/nano/alarm
#
30 2 * * * /backups/backup_mysql_databases.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment