mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-28 10:20:22 +02:00
e5a9747d7b
* Update line indentation * Add comment re minimum version of logrotate to support 'su' directive
27 lines
570 B
Plaintext
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
|
|
}
|