Using Linux RTC for Wake-Up Functionality

In Linux systems, we can use crontab to set periodic tasks, such as scheduled shutdowns, but how do we schedule wake-ups? After 2000, many computer motherboards have supported the RTC (real-time clock) functionality. If the corresponding BIOS program supports the relevant settings, then it can be configured in the BIOS. If not, or if you … Read more

Detailed Explanation of the Crontab Command in Linux Systems

Detailed Explanation of the Crontab Command in Linux Systems

1. What is Crontab? <span>crontab</span> (short for “cron table”) is a command used to install, uninstall, list, and edit cron jobs. The cron is a daemon (service) in Linux/Unix systems that automatically executes tasks based on a predefined schedule. These tasks are referred to as cron jobs or cron tasks. In simple terms, <span>crontab</span> is … Read more

Example Scripts for Managing Scheduled Tasks on Linux

Example Scripts for Managing Scheduled Tasks on Linux

Recently, I have been working on modifying and migrating several scheduled task scripts, so I took the opportunity to review my knowledge of cron and systemd timers, summarizing it into a series of articles. Interested readers can click the links below to read the original articles. Thank you for your support. Detailed Explanation of cron … Read more

A Detailed Explanation of Cron Timers in Linux

A Detailed Explanation of Cron Timers in Linux

When I first started working, there was a night when I stayed late to modify some code. I thought the new features were fine, so I submitted the changes and went home. The next morning, as soon as I arrived at my desk and before I even turned on my computer, QA came to find … Read more

Learn Automatic Backup in 3 Minutes! Setting Up Incremental Backups with rsync and cron on Linux

Learn Automatic Backup in 3 Minutes! Setting Up Incremental Backups with rsync and cron on Linux

Backing up is like insurance; you don’t need it every day, but when disaster strikes, such as accidental file deletion, disk failure, or ransomware attacks, being unprepared can be devastating. This is why a smart backup plan is essential. In this practice, I will show you how to schedule incremental backups using rsync and cron. … Read more

K8S Application Orchestration and Management: Job and CronJob

Continuing from the previous study on Controllers, this section will focus on the practical aspects of Job and CronJob. First, consider the following question: Can we run task processes directly through Pods? If we do this, how do we solve the following issues? How to ensure that the processes within the Pod terminate correctly? If … Read more

Detailed Explanation of Pod Controllers – Job

Detailed Explanation of Pod Controllers - Job

“Learning k8s from Scratch”“ Introduction to Job Job is primarily responsible forbatch processing (processing a specified number of tasks at once)temporaryone-time (each task runs only once and then ends)tasks. The characteristics of Job are as follows: * When the pod created by Job successfully finishes, Job will record the number of successfully finished pods. * … Read more

How to Run Cron Jobs Every 5, 10, 15, or 30 Minutes in Linux

How to Run Cron Jobs Every 5, 10, 15, or 30 Minutes in Linux

In Linux systems, <span>Cron</span> is a powerful tool for automating repetitive tasks. By configuring <span>Cron</span> appropriately, users can easily schedule tasks to run every 5, 10, 15, or 30 minutes. This article will delve into how to use <span>Cron</span> to implement scheduled tasks at these intervals, covering everything from basic concepts to advanced configurations, aiming … Read more

How to Execute Commands or Scripts at Reboot or Startup in Linux?

How to Execute Commands or Scripts at Reboot or Startup in Linux?

In the world of Linux, mastering the skill of executing commands or scripts during system reboot or startup is like possessing a magical key that opens the door to automated operations🔑. Whether it’s for system initialization settings, starting specific services, or performing data backups, this method allows for efficient automation. This article will take you … Read more

Ansible’s Cron Module for Managing Scheduled Tasks

Ansible's Cron Module for Managing Scheduled Tasks

The Ansible `cron` module is used to manage scheduled tasks (cron jobs) on remote hosts, allowing you to create, modify, and delete scheduled tasks to ensure specified tasks are executed automatically at designated times. 1. Features of Ansible’s `cron` Module Manage crontab and environment variable entries: You can create environment variables and named crontab entries, … Read more