gistigo

PLVideo in PolishENSummary in English

Server Task Automation with CRON: A Practical Guide

Automatyzacja zadań na serwerze z CRONem: Praktyczny poradnik

ChannelDenis Kaczor (opens YouTube)
Video
15 min
On YouTube since

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

Summary

First 2 of 8 parts

Linux 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 free

Free, in a minute. Have an account? Log in

Free account

Read them in full – for free

  • 2 649 summaries in full – the gist, chapters, facts and takeaways
  • Full-text search, collections and an AI chat about every video
  • New videos from your channels summarized automatically, with an email notification