Manjaro Difference between revisions of "Limit the size of .log files & the journal/ru"

Difference between revisions of "Limit the size of .log files & the journal/ru"

From Manjaro
(Created page with "=== Эффект от ежедневного запуска /etc/logrotate.d/rotate.logs ===")
Tags: Mobile web edit Mobile edit
(Created page with "Это означает, что любой файл в /var/log, имеющий '''log''' в конце своего имени, будет обработан командам...")
Tags: Mobile web edit Mobile edit
Line 355: Line 355:
=== Эффект от ежедневного запуска /etc/logrotate.d/rotate.logs ===
=== Эффект от ежедневного запуска /etc/logrotate.d/rotate.logs ===


Is that any file in /var/log that had '''log''' at the end of its name will be processed by the commands in the '''rotate.logs''' script. This will back up these files to a new file '''<name>.log.1''' & empty the original file to size 0. Any previous copies with '''<name>.log.<number>''' will have their numbers bumped up one, until the day when they would have been given an 8, that is the day that they are deleted.
Это означает, что любой файл в /var/log, имеющий '''log''' в конце своего имени, будет обработан командами скрипта '''rotate.logs'''. Это приведет к резервному копированию этих файлов в новый файл '''<имя>.log.1''' и очистке содержимого исходного файла. Все предыдущие копии с '''<имя>.log.<номер>''' будут иметь номера, увеличенные на единицу до дня, когда им будет присвоена цифра 8, то есть до дня, когда они будут удалены.


As well as this rotating (copying) & renaming of files, all files will be compressed in gzip format on the next rotation. Which means that you always have the current file & yesterdays file in /var/log in uncompressed format.  
As well as this rotating (copying) & renaming of files, all files will be compressed in gzip format on the next rotation. Which means that you always have the current file & yesterdays file in /var/log in uncompressed format.  
Cookies help us deliver our services. By using our services, you agree to our use of cookies.