-
Notifications
You must be signed in to change notification settings - Fork 0
/
crontab.root
50 lines (47 loc) · 1.94 KB
/
crontab.root
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#############################################################
## Name : Crontab.root
## Author : LHammonds
## Version : 1.2
## Date : 2022-05-31
## Purpose : Crontab Schedule for root user
###################### CHANGE LOG ###########################
## DATE VER WHO WHAT WAS CHANGED
## ---------- --- --- ---------------------------------------
## 2012-05-20 1.0 LTH Created schedule.
## 2020-04-09 1.1 LTH Minor updates.
## 2022-04-31 1.2 LTH Partition updates to match 22.04 instructions.
#############################################################
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Crontab SYNTAX:
# __________ Minute (0-59)
# / _________ Hour (0-23)
# / / _______ Day Of Month (1-31)
# / / / ____ MONth (1-12)
# / / / / _ Day Of Week (0-7) (Sun = 0 or 7)
# / / / / / -------------------------------------------------------------
# m h dom mon dow command <arguments> > /dev/null 2>&1
#
# Backup database server
#
#0 23 * * * /var/scripts/prod/db-backup.sh > /dev/null 2>&1
#
# Backup specific database on demand
#
#0-59 * * * * /var/scripts/prod/db-ondemand-backup.sh > /dev/null 2>&1
#
# Daily checks for available space
#
0 1 * * * /var/scripts/prod/check-storage.sh root 500 100 > /dev/null 2>&1
5 1 * * * /var/scripts/prod/check-storage.sh home 100 50 > /dev/null 2>&1
10 1 * * * /var/scripts/prod/check-storage.sh srv 100 50 > /dev/null 2>&1
15 1 * * * /var/scripts/prod/check-storage.sh usr 100 50 > /dev/null 2>&1
20 1 * * * /var/scripts/prod/check-storage.sh var 100 50 > /dev/null 2>&1
25 1 * * * /var/scripts/prod/check-storage.sh tmp 100 50 > /dev/null 2>&1
30 1 * * * /var/scripts/prod/check-storage.sh opt 100 50 > /dev/null 2>&1
35 1 * * * /var/scripts/prod/check-storage.sh bak 500 500 > /dev/null 2>&1
#
# Daily software upgrade check
#
0 3 * * * /var/scripts/prod/apt-upgrade.sh > /dev/null 2>&1
30 3 * * * /var/scripts/prod/reboot-check.sh > /dev/null 2>&1