The cron command-line utility, also known as cron job, is a job scheduler on Unix-like operating systems. Users who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration—though its general-purpose nature makes it useful for things like downloading files from the Internet and downloading email at regular intervals.

pacman -S cronie
systemctl enable --now cronie.service
crontab -e

Every reboot:

@reboot echo “Hello World! I'm back!”

Backup every day at 2am:

00 2 * * * /root/rsnapshot.sh

Every Sunday at 9am:

00 9 * * SUN echo “Breakfast! Wohoooo!”

Use https://crontab.guru/ as a guide.

2022/02/26 01:49 · dan
  • en/desktop/services/crontab.txt
  • Last modified: 2022/02/26 01:52
  • by dan