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

Created page with "* '''rotate 7''' означает сохранение 7 ежедневных (в данном сценарии) резервных копий и удаление самой..."
(Created page with "* '''dateext''' помещает дату ротации на новую копию, так что она будет использовать такой формат: '''<им...")
(Created page with "* '''rotate 7''' означает сохранение 7 ежедневных (в данном сценарии) резервных копий и удаление самой...")
Tags: Mobile web edit Mobile edit
Line 249: Line 249:
* '''dateext''' помещает дату ротации на новую копию, так что она будет использовать такой формат: '''<имя_файла>.log-20221219'''
* '''dateext''' помещает дату ротации на новую копию, так что она будет использовать такой формат: '''<имя_файла>.log-20221219'''


* '''rotate 7''' means keep 7 of our daily (in this script) backups, delete the oldest when it would become the 8th.
* '''rotate 7''' означает сохранение 7 ежедневных (в данном сценарии) резервных копий и удаление самой старой, когда она становится 8-й.


* '''compress''' is obvious, it uses gzip by default & adds a .gz extension to your file, which will make it look like this: <file.name>.log.1.gz you can choose other compression methods, I'm not going into that here.
* '''compress''' is obvious, it uses gzip by default & adds a .gz extension to your file, which will make it look like this: <file.name>.log.1.gz you can choose other compression methods, I'm not going into that here.
translator
11,433

edits