NextCloudBackup/etc/logrotate.d/backup

16 lines
395 B
Plaintext
Raw Permalink Normal View History

2018-10-16 09:34:29 -06:00
### 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
}