Restore default crontab

Hello,
I deleted my crontab :frowning:

I tried to restore it based on the sources :

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 !

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/

It’s /boot/dietpi since a while now :wink:

1 Like

Right, I was checking on my oldest running dietpi and missed the symlink :smiley:

If I understand correctly, Dietpi-cron is working and crontab is supposed to be empty?
There is no cron for logs files rotating etc.?

Your understanding is correct.

There is, in /etc/cron.{daily|hourly}/dietpi

Thank you!

1 Like