abraunegg-onedrive/logrotate/onedrive.logrotate
abraunegg e5a9747d7b
Update onedrive.logrotate (#463)
* Update line indentation
* Add comment re minimum version of logrotate to support 'su' directive
2019-04-11 10:43:47 +10:00

27 lines
570 B
Plaintext

# Any OneDrive Client logs configured for here
/var/log/onedrive/*log {
# What user / group should logrotate use?
# Logrotate 3.8.9 or greater required otherwise:
# "unknown option 'su' -- ignoring line" is generated
su root users
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# compress the log files
compress
# missing files OK
missingok
}