tailieunhanh - Setting Up LAMP Getting Linux, Apache, MySQL, and PHP Working Together phần 4

Điều này sẽ tạo ra một tarball chứa các tập tin chỉ mới hơn so với sao lưu đầy đủ cuối cùng (vào ngày Chủ nhật) là sao lưu gia tăng của bạn. Tiếp theo, bạn sẽ sử dụng các lệnh tương tự như kịch bản sao lưu đầy đủ để xóa bất kỳ tập tin cũ, nhưng thời gian này bạn muốn xóa các tập tin chỉ gia tăng lớn tuổi hơn một tuần. Vì vậy, sử dụng lệnh sau đây: | 104 Chapter 4 Linux Administration Simpo PDF Merge and Split Unregistered Version - http This will create a tarball that contains only files that are newer than the last full backup on Sunday as your incremental backup. Next you ll use the same command as the full backup script to delete any older files but this time you want to delete only incremental files that are older than one week. So use the following command find backups incremental_backup- -mtime 14 -exec rm -rf Here you see that the -mtime flag now has a 14 argument for the number of days and that you are now finding files that begin with incremental. These are the two areas that have changed for your new script. After that has been added add the same command you used in your full backup script to transfer the directory or single file to your device or location of choice. With that finished you will be ready to add your cron job into the system to automatically run these scripts when required. To run your newly created scripts automatically you ll be using the etc crontab file. You can edit the crontab file and have your changes automatically take effect by using the crontab -e command. Ifyou are logged in as root then you will be taken to the crontab file in vi. Once you exit and write the changes the crontab will automatically make its changes. Try that now and take a look at the format. Here you have six parameters per line minute This is an integer value from 0 to 59 representing the time at which to run this script. hour This is also an integer representing the hour at which to run this script or command. It should be a value from 0 to 23. dayOfMonth The dayOfMonth value should be from 1-31 for the day of the month the script or command specified should be run. monthOfYear This is a value from 1-12 representing the month of the year. dayOfWeek dayOfWeek should be a value from 0-7 which represents Sunday through Monday with the 7 representing Sunday once again. shellcommand At last .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.