You should be able to set up a schedule in cron:
Personally, I use TP-Link HS103 smart plugs on some network devices that can be scheduled to power off/on based on hourly, daily, weekly. Using the Kasa app, I can even power off/on remotely to reboot at any time.