These scripts are called usually with cron with something like the following
0 0 * * * /root/backup.sh