Skip to content

Commit 232aeca

Browse files
committed
crontab edit 每天凌晨 1:55 执行该脚本,Nginx日志定时备份和删除
1 parent d683e98 commit 232aeca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Nginx-Rtmp/Shell_Nginx_Log_cut.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,7 @@ sudo kill -USR1 $pid
5050
#delete 7 days ago nginx log files
5151
find $base_path -mindepth 1 -maxdepth 3 -type f -name "*.log" -mmin +$save_mins | xargs rm -rf
5252

53-
53+
#################### crontab edit 每天凌晨 1:55 执行该脚本 #####################
54+
# 55 1 * * * bash /home/tinywan/shell/nginx_log_cut.sh >/dev/null 2>&1
55+
##############################################################################
5456

0 commit comments

Comments
 (0)