Scrigroup - Documente si articole

     

HomeDocumenteUploadResurseAlte limbi doc
AccessAdobe photoshopAlgoritmiAutocadBaze de dateCC sharp
CalculatoareCorel drawDot netExcelFox proFrontpageHardware
HtmlInternetJavaLinuxMatlabMs dosPascal
PhpPower pointRetele calculatoareSqlTutorialsWebdesignWindows
WordXml

AspAutocadCDot netExcelFox proHtmlJava
LinuxMathcadPhotoshopPhpSqlVisual studioWindowsXml

logrotate linux command

linux



+ Font mai mare | - Font mai mic



logrotate

logrotate [options] config_files



System administration command. Manipulate log files according to commands given in config_files.

Options

-d

Debug mode. No changes will be made to log files.

-s, --state file

Save state information in file. The default is /var/lib/logrotate.status.

--usage

Usage version and copyright information.

Commands

compress

Compress old versions of log files with gzip.

copytruncate

Copy log file, then truncate it in place. For use with programs whose logging cannot be temporarily halted.

create [permissions] [owner] [group]

After rotation, re-create log file with the specified permissions, owner, and group. permissions must be in octal. If any of these parameters is missing, the log file's original attributes will be used.

daily

Rotate log files every day.

delaycompress

Don't compress log file until the next rotation.

errors address

Mail any errors to the given address.

endscript

End a postrotate or prerotate script.

ifempty

Rotate log file even if it is empty. Overrides the default notifempty option.

include file

Read the file into current file. If file is a directory, read all files in that directory into the current file.

mail address

Mail any deleted logs to address.

monthly

Rotate log files only the first time logrotate is run in a month.

nocompress

Override compress.

nocopytruncate

Override copytruncate.

nocreate

Override create.

nodelaycompress

Override delaycompress.

noolddir

Override olddir.

notifempty

Override ifempty.

olddir directory

Move logs into directory for rotation. directory must be on the same physical device as the original log files.

postrotate

Begin a script of directives to apply after the log file is rotated. The script ends when the endscript directive is read.

prerotate

Begin a script of directives to apply before a log file is rotated. The script ends when the endscript directive is read.

rotate number

The number of times to rotate a log file before removing it.

size n[k|M]

Rotate log file when it is greater than n bytes. n can optionally be followed by k for kilobytes or M for megabytes.



Politica de confidentialitate | Termeni si conditii de utilizare



DISTRIBUIE DOCUMENTUL

Comentarii


Vizualizari: 623
Importanta: rank

Comenteaza documentul:

Te rugam sa te autentifici sau sa iti faci cont pentru a putea comenta

Creaza cont nou

Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved