Difference between revisions of "Logrotate"

From ArchWiki
Jump to: navigation, search
(recat)
(unhide i18n. unless I misunderstood, these should be on all articles, even if no translation yet exists. is that right?)
Line 1: Line 1:
 
[[Category:Daemons and system services (English)]]
 
[[Category:Daemons and system services (English)]]
 
[[Category:Data compression and archiving (English)]]
 
[[Category:Data compression and archiving (English)]]
<!-- {{i18n|logrotate}} (hide i18n until at least 1 translation exists -->
+
{{i18n|logrotate}}
 
{{Stub}}
 
{{Stub}}
 
{{Article summary start}}
 
{{Article summary start}}

Revision as of 02:27, 21 September 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Logrotate#)
Summary help replacing me
An introduction to the popular log maintenance utility.
Related
Cron
Resources
Logrotate on Gentoo Linux Wiki

From https://fedorahosted.org/logrotate/:

The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size.

By default, logrotate's rotation consists of renaming existing log files with a numerical suffix, then recreating the original empty log file. For example, Template:Filename is renamed Template:Filename. If Template:Filename already exists from a previous rotation, it is first renamed Template:Filename. (The number of backlogs to keep can be configured.)

Installation

Template:Package Official is available in [core] and is installed as a member of the base group.

# pacman -S logrotate

Typically, logrotate is run via a cron job; Template:Filename is included in the package.

Configuration

The primary configuration file for logrotate is Template:Filename; additional configuration files are included from the Template:Filename directory.