{"id":32,"date":"2008-08-26T09:24:24","date_gmt":"2008-08-26T07:24:24","guid":{"rendered":"http:\/\/wp1.fredptitgars.net\/index.php\/2008\/08\/26\/logrotate\/"},"modified":"2008-08-26T09:24:24","modified_gmt":"2008-08-26T07:24:24","slug":"logrotate","status":"publish","type":"post","link":"https:\/\/fredptitgars.ovh\/?p=32","title":{"rendered":"Logrotate"},"content":{"rendered":"<p><em>Logrotate<\/em> permet la rotation des fichiers log.<\/p>\n<p>le fichier de configuration se trouve sous<br \/>\n<br \/>\/etc\/logrotate.conf<\/p>\n<p>le fichier actuel:<\/p>\n<p><code><br \/>\n# see \"man logrotate\" for details<br \/>\n# rotate log files weekly<br \/>\nweekly<\/p>\n<p># keep 4 weeks worth of backlogs<br \/>\nrotate 2<\/p>\n<p># create new (empty) log files after rotating old ones<br \/>\ncreate<\/p>\n<p># uncomment this if you want your log files compressed<br \/>\ncompress<\/p>\n<p># packages drop log rotation information into this directory<br \/>\ninclude \/etc\/logrotate.d<\/p>\n<p># no packages own wtmp, or btmp -- we'll rotate them here<br \/>\n\/var\/log\/wtmp <em><br \/>\n    missingok<br \/>\n    monthly<br \/>\n    create 0664 root utmp<br \/>\n    rotate 1<br \/>\n<\/em><\/p>\n<p>\/var\/log\/btmp <em><br \/>\n    missingok<br \/>\n    monthly<br \/>\n    create 0664 root utmp<br \/>\n    rotate 1<br \/>\n<\/em><\/p>\n<p># system-specific logs may be configured here<br \/>\n\/var\/log\/proftpd\/mysql.log <em><br \/>\n<\/em><\/p>\n<p><\/code><\/p>\n<p>Les deux derni\u00e8res lignes ont \u00e9t\u00e9 ajout\u00e9:<br \/>\n\/var\/log\/proftpd\/mysql.log <em><br \/>\n<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Logrotate permet la rotation des fichiers log. le fichier de configuration se trouve sous \/etc\/logrotate.conf le fichier actuel: # see \u00ab\u00a0man logrotate\u00a0\u00bb for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 2 # create new (empty) log files after rotating old ones create # uncomment this if you [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-config_pc"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":0,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}