diff --git a/source/part-2-deployment/centos+debian.adoc b/source/part-2-deployment/centos+debian.adoc index 3a6ebb5..423264e 100644 --- a/source/part-2-deployment/centos+debian.adoc +++ b/source/part-2-deployment/centos+debian.adoc @@ -265,3 +265,19 @@ Et dans le fichier crontab : ---- 0 23 * * * /home/medplan/bin/backup.sh ---- + + +=== Rotation des jounaux + +[source,bash] +---- +/var/log/gwift/* { + weekly + rotate 3 + size 10M + compress + delaycompress +} +---- + + Puis on démarre logrotate avec # logrotate -d /etc/logrotate.d/gwift pour vérifier que cela fonctionne correctement. \ No newline at end of file