init : articles varlog (migration depuis rsync)

This commit is contained in:
Cédrix
2026-05-15 10:37:48 +02:00
commit b0716911b3
5573 changed files with 107423 additions and 0 deletions
@@ -0,0 +1 @@
{"uuid":"805084fe-172b-442a-bfa1-8d5f8e591515","slug":"epure-moi-ces-logs-que-je-ne-serai-voir-logrotate","title":"logrotate, épure-moi ces logs que je ne serai voir","author":"cedric@abonnel.fr","published":true,"published_at":"2023-02-10 22:48:30","created_at":"2023-02-10 22:48:30","updated_at":"2023-02-10 22:48:30","revisions":[],"cover":"","files_meta":[],"external_links":[],"seo_title":"","seo_description":"","og_image":"","category":"Informatique","content":"# logrotate, épure-moi ces logs que je ne serai voir\n\n## Exemple pour Apache2\n```\n/home/www-data/logs/apache2/*.log {\n daily\n missingok\n rotate 31\n notifempty\n create 640 root\n sharedscripts\n postrotate\n if /etc/init.d/apache2 status > /dev/null ; then \\\n /etc/init.d/apache2 reload > /dev/null; \\\n fi;\n endscript\n prerotate\n if [ -d /etc/logrotate.d/www-data-prerotate ]; then \\\n run-parts /etc/logrotate.d/www-data-prerotate; \\\n fi; \\\n endscript\n }\n \n /home/www-data/www/storage/abonnel.fr/cloud/data/nextcloud.log {\n su www-data www-data\n daily\n missingok\n rotate 2\n notifempty\n create 640 www-data\n sharedscripts\n }\n \n /home/www-data/logs/load/load.log {\n su www-data www-data\n daily\n missingok\n rotate 3\n notifempty\n create 640 www-data\n sharedscripts\n }\n \n /home/www-data/logs/certbot/certbot.log {\n su www-data www-data\n daily\n missingok\n rotate 30\n notifempty\n create 640 www-data\n sharedscripts\n }\n```","featured":false,"tags":[]}