##########################################################
#* * * * * command to be executed
#- - - - -
#| | | | |
#| | | | +----- day of week (0 - 6) (Sunday=0)
#| | | +------- month (1 - 12)
#| | +--------- day of month (1 - 31)
#| +----------- hour (0 - 23)
#+------------- min (0 - 59)
##########################################################
#Update Time Server, every 1h:
* */1 * * * /opt/script/time-force-update.sh
#NGINX: GET CACHE INFO PER 5 mins:
*/5 * * * * /opt/script/nginx-cache-info-daily.sh
#CHECK IOSTAT when get CACHE:
*/5 * * * * /opt/script/iostat-to-file.sh
#NGINX: TRUNCATE LOG, 10min ON SSD LOCATION:
*/5 * * * * /opt/script/nginx-log-truncate.sh
#SCAN ALIVED HOST: EVERY NIGHT
31 23 * * * /opt/script/nmap-scan-alive-host.sh
#DELETE OLD LOG FILE, KEEP ONLY ONE:
45 23 * * * /opt/script/nmap-delete-old-log-file.sh
#DELETE OLD NGINX CACHE FOLDER: 50GB
#SAMPLE: DONE
#06 16 23 09 3 /opt/script/nginx-delete-cache.sh
#Running only one time, at: 2015.09.24 01h03p
03 01 24 09 4 /opt/script/nginx-delete-cache.sh
#Delete old file, 7 day in the past at 6h05:
05 6 * * * /opt/script/delete-old-files.sh
No comments:
Post a Comment