/home/alf/Gitea/logger/Logs/*.log { monthly rotate 3 compress missingok notifempty copytruncate dateext postrotate echo "$(date) Logrotate ($1) hat stattgefunden! ERR: $?" >>$1 echo "$(date) Logrotate ($1) hat stattgefunden! " >>/home/alf/Gitea/logger/Logs/logrotate.log endscript }