$ vi /etc/systemd/system/<TIMER_NAME>.timer
[Unit]
Description=<Describe your Timer>
[Timer]
OnCalendar=*-*-* *:00:00 # Runs every Year-Month-Day Hour:Minute:Second
Persistent=true # Run service after boot when time has been missed
[Install]
WantedBy=timers.target
If timer and service file have the same name, the activated timer will automatically trigger the service file.
$ vi /etc/systemd/system/<SERVICE_NAME>.service
[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/local/bin/example.sh
If names of the service and timer file don`t match, use following part in the service file
[Timer]
Unit=example.timer