Detailed explanation of Linux scheduled tasks

1. Introduction to planning tasks

The function of the planned task: the planned task is mainly to do some periodic tasks. The most important use at present is to back up data regularly.

For example, your company has a core application database. The data in it is very important, so you need to perform a backup operation every day. The backup time should be selected when the database workload is relatively low. After the data statistics of the monitoring system, every day in the early morning The workload of the database from 2:00 to 3:00 am is the lowest time period of the day, so in order not to affect the database backup, it needs to be backed up from 2:00 am to 3:00 am.

Classification:

  1. One-time scheduling execution at;
  2. Circular scheduling executes cron;

2. One-time scheduled tasks

1. Introduction to one-time scheduled tasks

The so-called one-time planned task is a task that is executed only once according to the plan. Both windows and Linux have the function of one-time scheduled tasks.

Windows scheduled tasks, click Administrative Tools in the Control Panel:

Click on Task Scheduler:

 

Create a scheduled task:

Guess you like

Origin blog.csdn.net/qq_35029061/article/details/131343602