Created logroate config file for backup logs
This commit is contained in:
parent
3d0b2a5469
commit
8931206e1f
15
etc/logrotate.d/backup
Normal file
15
etc/logrotate.d/backup
Normal 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user