Starting with the operation, I used the simplest process to solve the problem. Instead of taking the theoretical path, I wanted to back up the data regularly under Ubuntu! I want to restart regularly! I want to schedule... use crontab to handle it. Run the following command: crontab-e // edit the cron service editing format: ***** date Description: minute (0-59) hour (0-23) date (1-31) month (1-12) Week (0-6, 0 is Sunday) date is
Starting with the operation, solve the problem with the simplest process without going through the theoretical line
In Ubuntu, I want to back up regularly! I want to restart regularly! I want to schedule it... use crontab to handle it.
Instructions: crontab-e // edit the cron Service
Edit format: ***** date
Note: minute (0-59) hour (0-23) Date (1-31) month (1-12) Week (0-6, 0 is Sunday) date is the file you want to execute
For example, if you want to execute a shell script at every day, you can edit the script as follows: 01 00 ***/usr/local/runtime/backup. sh
If you have a lot of things that need to be done by the operating system for you at regular intervals, append one by one below.
Next command: crontab-l // list the cron you have added
After adding the record, the restart takes effect: service crond restart