Skip to content

25 mtx-changer: add and package a logrotate script #2005

@bruno-at-bareos

Description

@bruno-at-bareos

some people are using the debug=1 setup for mtx-changer operation which create
/var/log/mtx.log

We don't distribute a logrotate script which would allow rotation of that file.
should goes in same package as mtx-changer bareos-storage-tape

#
# If you are appending to a log file (default), to
#   have your log file compressed, rotated, and after a time
#   deleted, after possibly editing the values below,
#   copy this file to:
#
#      /etc/logrotate.d/bareos-mtx
#
/var/log/bareos/mtx.log {
    monthly
    rotate 12
    notifempty
    missingok
    su bareos bareos
}

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions