-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathcrontab
38 lines (24 loc) · 1.32 KB
/
crontab
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
# Start Monitoring SSH Authorised Keys
@reboot /bin/bash /root/bin/monitor-ssh-keys.sh &
# Sync Webroot (1h To Get Contents From Backup Server Before Start rsync With --delete Flags)
@reboot sleep 1h; /bin/bash /root/bin/sync-webroot.sh &>> /var/log/sync-webroot.sh.log &
# Sync Webroot (1h To Get Contents From Backup Server Before Start rsync With --delete Flags)
@reboot sleep 1h; /bin/bash /root/bin/sync-with-inotify.sh &>> /var/log/sync-with-inotify.log &
# Apply iptable rules on server reboot
@reboot iptables-restore < /root/bin/iptables.rules
# Check MySQL Replication Status
@daily /bin/bash /root/bin/mysqlstatus.sh | mail -s "$(hostname -f) MySQL Replication Status" mitesh.shah@rtcamp.com
#Check HDD Space
@daily /bin/bash /root/bin/hddspace.sh
# Correct WebRoot Permissions
0 2 * * * /bin/bash /root/bin/fixpermission.sh
# ClamAV Scan
10 2 * * * /bin/bash /root/bin/customscan.sh
# Rsnapshot MySQL Script
20 * * * * /bin/bash /root/bin/mysqldump.sh
#Run Rsnapshot hourly
00 * * * * /usr/bin/rsnapshot hourly
#Run Rsnapshot At 02:00 Everyday
40 02 * * * /usr/bin/rsnapshot daily
#Run Rsnapshot At 06:00 Every Sunday
50 06 * * 0 /usr/bin/rsnapshot weekly