Introduction
A guide to Cron, a tool for full task automation in Linux systems like Proxmox. This material focuses on practical server scheduling to reduce energy consumption.
Key takeaways 4 / 6
The gist of the content in a few sentences
- Cron uses a five-field time syntax for precise task scheduling without the need for additional software.
- The Wake on LAN feature allows for remote machine wake-ups using "magic packets" sent to a MAC address.
- Correct configuration requires creating a dedicated system service to keep the network card ready after the system shuts down.
- When defining tasks in the crontab file, it is essential to provide full absolute paths to programs and scripts.
Show all 6 takeaways
- Automating server shutdowns with the shutdown command allows for significant power savings when backups are performed infrequently.
- A key requirement for timely schedule execution is the synchronization of system time with the real-time clock.
Video chapters 8Click and the video will play from the selected moment
- 0:16Linux task automation basics
- 3:07Task scheduler structure and syntax
- 4:38Scheduling logic and server power automation
- 9:47Automating server wake-up via CRON
- 9:50Configuring Wake on LAN in the system
- 11:37Scheduling system shutdown and time synchronization
- 12:57Automatic server wake-up using Magic Packets
- 15:05Task automation and energy saving
Summary
First 2 of 8 partsLinux Task Automation Basics
Automating repetitive tasks in Linux-based systems, such as Proxmox, is possible thanks to a built-in tool called Cron. It acts as an automatic task scheduler that allows you to run any programs, scripts, or commands at a specific time without user intervention. The speaker emphasizes that this tool is an integral part of the system, eliminating the need to install additional software. Before getting to the point, the author mentions a network and server specialist named Temmek (who runs Smart Serwis Wodzisław Śląski) and thanks those who support the channel financially through a coffee donation platform.
Task Scheduler Structure and Syntax
Task configuration takes place in the Crontab file, where each entry consists of five asterisks and the name of the script or command to be executed. These five asterisks represent time parameters that define the frequency and timing of the task. The first asterisk is for minutes, the second for hours, the third for days of the month, the fourth for months, and the fifth for days of the week. For days of the week, the range is 0 to 7, where values 0 and 7 represent Sunday. For example, to run a script every day at 2:30 AM, you would enter 30 in the first column and 2 in the second.
Read the full summary – for free
6 parts of text left, key takeaways, facts, questions and answers, action items – with the source minute for every passage. Plus search, collections and the AI assistant.
Keep reading for freeFree, in a minute. Have an account? Log in
