Scheduled Task jobs

Source: Internet
Author: User
1, every Monday to Saturday 3:20 A.M., run the CP command to archive the/etc/directory, storage location is/BACKUPS/ETC-YYYY-MM-DD; mkdir backups00 * * * 1-5 tar-cvf/backups/etc-' date +\%y-\%m-\%d '. TAR.XZ/ETC00 * * * 1-5 cp-rf/etc/backups/etc-2015- 09-052, every Sunday 2:30 A.M., run the CP command to backup the/etc/fstab file, storage location is/BACKUP/FSTAB-YYYY-MM-DD-HH-MM-SS30 * * 0 cp-rf/etc/fstab/backup/ fastab-' Date +%y-%m-%d-%h-%m-%s ' 3, every night 12 o'clock, get all lines in/proc/meminfo file that begin with S or M, append to/statistics/ Meminfo.txt file, and the daily message is preceded by a similar =============== divider; XX * * * grep "^[s| M] "/proc/meminfo >>/statistics/meminfo.txt && echo" =================== ">>/statistics/ Meminfo.txt

This article is from "Fang Wenjun's It Technology blog" blog, make sure to keep this source http://fangwenjun.blog.51cto.com/7806977/1691626

Scheduled Task jobs

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.