Re: Logrotate - compress dl a nie wszystkich rotowanych logów.

Raf Czlonka <[email protected]>
Newsgroups gmane.linux.debian.user.polish
Message-ID <[email protected]>
On Wed, Mar 21, 2012 at 11:23:20AM GMT, Rafał Radecki wrote:
> Cześć.

Witam,

> Chciałbym by compress miał miejsce nie dla wszystkich plików rotowanych,
> np. maillog.0 , maillog.1, maillog.2 lecz np. od maillog.2 wzwyż.
> Kojarzycie jak osiągnąć taki efekt? W przypadku mailloga wolę mieć pod ręką
> np. 3 logi nieskompresowane i ewentualnie starsze rozpakowywać.

Z tego co mi wiadomo to jedynym wyjsciem jest oskryptowanie tego.

$ man 8 logrotate

compresscmd

Zamiast gzip lub compress podaj sciezke do skryptu.

delaycompress zrobi to dla plikow ktorych nie moze zamknac od razu, a
nocompress wylaczy kompresje w ogole.

Pozdrawiam,
-- 
Raf


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.