logrotate Flashcards

1
Q

logrotate

A

logrotate is designed to ease administration of systems that generate large numbers of log files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

logrotate

  • d, –debug
  • f, –force
  • m, –mail=command
  • s, –state=statefile
  • v, –verbose
  • l, –log=logfile
A
  • 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

logrotate [DIRECTIVES]

compress

compresscmd

uncompresscmd

compressext

compressoptions

copy

A

copytruncate

create mode owner group , create owner group

createolddir mode owner group

daily

dateext

dateformat format_string

dateyesterday

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

logrotate [DIRECTIVES]

datehourago

delaycompress

extension ext

hourly

addextension ext

ifempty

A

include file or directory

mail address

mailfirst

maillast

minage count

maxage count

maxsize size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

logrotate [DIRECTIVES]

minsize size

missingok

monthly

nocompress

nocopy

nocopytruncate

A

nocreate

nocreateolddir

nodelaycompress

nodateext

nomail

nomissingok

noolddir

nosharedscripts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

logrotate [DIRECTIVES]

noshred

notifempty

olddir directory

postrotate/endscript

prerotate/endscript

firstaction/endscript

A

lastaction/endscript

preremove/endscript

rotate count

renamecopy

size size

sharedscripts

shred

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

logrotate [DIRECTIVES]

shredcycles count

start count

su user group

A

tabooext [+] list

taboopat [+] list

weekly [weekday]

yearly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly