Server restart script

Me and my friend are running a fabric mc server on a raspberry pi with ubuntu (linux ofc). To maintain performance we want it to automatically restart at like 1 am. Can anybody help me with this?
Was this page helpful?