/root/Logs/*.log { monthly rotate 3 compress missingok notifempty copytruncate dateext postrotate echo "$(date) Logrotate (log.txt) hat stattgefunden! ERR: $?" >>/root/Logs/log.log endscript }