Project 2: backup script

In your second project you need to develop a backup shell script that allows a user to backup selected directories. This project will contain two parts.

Part 1 – the script itself

In the first part of the project, you should write the script itself. The backup script should do the following:

Part 2 – running the backup script

In the second part of the script you need to read pages 532-539 and answer the following questions:

  1. How would you run this script at exactly 2am every Sunday using the at command?
  2. How would you run this script at exactly 2am every day using the at command?
  3. How would you run this script at exactly 2am today using the at command?
  4. How would you run this script at exactly 2am on March 31, 2008 using the at command?
  5. How would you view the list of the tasks scheduled by the at command?
  6. Explain what would be the cron file that would run the same script at the same times. In other words, how would you perform the same scheduling tasks using the cron service?