-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
crontab-helper.txt
28 lines (26 loc) · 1.28 KB
/
crontab-helper.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Crontab-Helper
#
# Add this to the bottom of your crontab
#
# Example: Backup all the hosted sites once per week on Sunday @ 5am
# 0 5 * * 0 /htdocs/_scripts/backup_all_sites.sh > /dev/null 2>&1
# * * * * * command to execute
# ┬ ┬ ┬ ┬ ┬
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ └───── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names)
# │ │ │ └────────── month (1 - 12)
# │ │ └─────────────── day of month (1 - 31)
# │ └──────────────────── hour (0 - 23)
# └───────────────────────── min (0 - 59)
# You can also use the following shortcuts instead:
#
# @hourly - Once an hour at the beginning of the hour
# @daily - Once a day at midnight
# @weekly - Once a week at midnight on Sunday morning
# @monthly - Once a month at midnight on the morning of the first day of the month
# @yearly - Once a year at midnight on the morning of January 1
# @reboot - At startup
#
# Example: Backup all the hosted sites every day at midnight
# @daily /htdocs/_scripts/backup_all_sites.sh > /dev/null 2>&1