Skip to content

对<%Y-%m-%d.log>格式文件进行定期删除维护

Notifications You must be signed in to change notification settings

dongzeXD/log-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

use in linux

update script_config.ini

sudo vim /etc/crontab

Insert these below

50 23 * * * root /usr/bin/python3 /your/directory/maintain_log.py

0 0 1 * * root /usr/bin/python3 /your/directory/backup_mysql.py 1

0 0 1 * * root /usr/bin/python3 /your/directory/backup_mysql.py 0


crontab rules:

* * * * * user command
Minutes Hours Days Months Weeks     

About

对<%Y-%m-%d.log>格式文件进行定期删除维护

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages