Skip to content

longhairx/log_rotate_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This tool is used for rotate logs once a day

Usage:
    ./log_rotate_tool.sh -d /home/work/log -f [filename]

Options:
    -h  Show this message and exit
    -d  log dir (necessary)
    -f  log file (necessary)
    -s  rotate size (default 5M), if the file is large then this, file while be rotated
    -r  log rotate time (default 5), max storage number of log rotate files
    -H  rotate every hour
    -D  rotate every day
    -M  rotate every month

from xiaomi

About

init a log rotate crontab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages