Hello,
I deleted my crontab
I tried to restore it based on the sources :
Ah no sadly that does not work. If you comment the entries, the related cron jobs won’t run at all, which is not the default but causes issues.
However, is it such an issue with a changed time? It doesn’t really matter at what time from jobs run, but only that they do regularly. For the daily job, take a time at night where is does not disturb your productive time as e.g. services may shut down temporarily or the high load lowers server performance while jobs run. There are no weekly and monthl…
Should I restore it for default user (crontab -e), root (sudo crontab -e), or maybe both ?
Because when I use dietpi-cron to change cron start times, it doesn’t modify the times in crontab, it seems to me that this was the case in the past.
Thanks for the help !
trendy
October 31, 2023, 7:56pm
2
Keep in mind that dietpi-cron that you posted earlier is not connected to the user/root crontab, rather controls the runtime for the /etc/cron.{daily|hourly|minutely|monthly|weekly}
Crontabs usually don’t have anything inside.
The dietpi-cron file is in /DietPi/dietpi/
trendy:
/DietPi/dietpi/
It’s /boot/dietpi
since a while now
1 Like
trendy
October 31, 2023, 8:58pm
4
Right, I was checking on my oldest running dietpi and missed the symlink
If I understand correctly, Dietpi-cron is working and crontab is supposed to be empty?
There is no cron for logs files rotating etc.?
trendy
November 1, 2023, 8:35am
6
Your understanding is correct.
There is, in /etc/cron.{daily|hourly}/dietpi