How do you schedule a script every day at 2:30 AM with cron?

BeginnerConceptLinux and shell
Answer

Add this with crontab -e. Fields are minute, hour, day of month, month, day of week:

30 2 * * * /opt/scripts/backup.sh >> /var/log/backup.log 2>&1
All Real-World Interview questions Roadmap: Interview readiness

More on Linux and shell