In linux, how does one regularly run the sh script?

Source: Internet
Author: User
In linux, how does one regularly run the sh script? -- Linux general technology-Linux programming and kernel information. The following is a detailed description. My script is:
#! /Bin/bash
Cp-a/data/mysql/mnt/mysqldata
Tar-czvf/mnt/mysql _ $ (date + "% Y % m % d" 2.16.tar.gz/mnt/mysqldata
Rm-fr/mnt/mysqldata

Regularly let him start running at every Sunday, only once. I set it to * 3 ** 0/root/backup. sh then, when he was running, more than 40 process machines were stuck. please help me write down the command for setting the timing. Thank you.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.