-
Notifications
You must be signed in to change notification settings - Fork 0
longhairx/log_rotate_tool
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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