Generated: 2025-07-15 06:22:41
System: Ubuntu (root crontab)
30 3 * * * /sbin/shutdown -r now
0 4 * * 0 /sbin/shutdown -r now
reboot0 4 * * 0 /sbin/reboot
Open the root crontab:
sudo crontab -e
Add the desired line.
Save and exit.
Confirm with:
sudo crontab -l
reboot or shutdown Liveswhich reboot
which shutdown
Usually: /sbin/reboot and /sbin/shutdown
last reboot
unattended-upgrades for auto patching.0 4 * * 0 /sbin/shutdown -r now
This will reboot your Ubuntu server every Sunday at 4:00 AM.