From 3b90f46b980ac6ac9d328acf6992e540cfec15e6 Mon Sep 17 00:00:00 2001 From: ORG-wiki Date: Sat, 26 Feb 2022 14:49:53 +1300 Subject: [PATCH] Wiki page crontab changed with summary [created] by Daniel --- pages/en/server/services/crontab.txt | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pages/en/server/services/crontab.txt diff --git a/pages/en/server/services/crontab.txt b/pages/en/server/services/crontab.txt new file mode 100644 index 0000000..3170c46 --- /dev/null +++ b/pages/en/server/services/crontab.txt @@ -0,0 +1,38 @@ +====== Cronie ====== + +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. + + +===== Package ===== + + +pacman -S cronie + + + +===== Start ===== + + +systemctl enable --now cronie.service + + + +===== Examples ===== + + +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.