Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following script creates a logrotation configuration to store 14 days of logs, zipping every day:

Code Block
$ cat << EOFF > /etc/logrotate.d/jrest
rotate 14
daily
missingok
notifempty
compress
dateext
dateformat %Y-%m-%d.
/home/jtel/jrest/log/jtel-jrest.log {
	create 644 jtel jtel
}
EOFF

...