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
More on Linux and shell
What does exit code 0 mean, and how do you see the last command's exit code?BeginnerHard link vs soft link?BeginnerWhat do the permissions `755` and `640` mean?BeginnerHow do you find which process is using the most CPU right now?BeginnerWhat is a zombie process?IntermediateSIGTERM vs SIGKILL?Beginner