sample logrotate config

This commit is contained in:
Asif Bacchus 2019-07-20 17:16:58 -06:00
parent 55162342c7
commit 271f08d0e4
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
### Rotate backup log file
# location of log file (-l parameter of script file)
/path/to/backup.log {
# rotate log file weekly -- you could also use 'daily', 'monthly' or
# specify a size using 'size 100k', for example
weekly
# keep 4 weeks of old logs (4 files) and delete older ones
rotate 4
# compress old log files using gzip (default)
compress
}