logrotate Flashcards
logrotate
logrotate is designed to ease administration of systems that generate large numbers of log files.
logrotate
- d, –debug
- f, –force
- m, –mail=command
- s, –state=statefile
- v, –verbose
- l, –log=logfile
- d, –debug, Test and print debug messages.
- f, –force, Force file rotation.
- m, –mail=command, Command to send mail (instead of ‘/usr/bin/mail’).
- s, –state=statefile, Path of state file.
- v, –verbose
- l, –log=logfile, Log file or ‘syslog’ to log to syslog.
logrotate [DIRECTIVES]
compress
compresscmd
uncompresscmd
compressext
compressoptions
copy
copytruncate
create mode owner group , create owner group
createolddir mode owner group
daily
dateext
dateformat format_string
dateyesterday
logrotate [DIRECTIVES]
datehourago
delaycompress
extension ext
hourly
addextension ext
ifempty
include file or directory
mail address
mailfirst
maillast
minage count
maxage count
maxsize size
logrotate [DIRECTIVES]
minsize size
missingok
monthly
nocompress
nocopy
nocopytruncate
nocreate
nocreateolddir
nodelaycompress
nodateext
nomail
nomissingok
noolddir
nosharedscripts
logrotate [DIRECTIVES]
noshred
notifempty
olddir directory
postrotate/endscript
prerotate/endscript
firstaction/endscript
lastaction/endscript
preremove/endscript
rotate count
renamecopy
size size
sharedscripts
shred
logrotate [DIRECTIVES]
shredcycles count
start count
su user group
tabooext [+] list
taboopat [+] list
weekly [weekday]
yearly