Question: Minor Assignment 1 - Writing Bash Scripts Program Description In this recitation, you will write a BASH script which will backup a directory, keeping only
Minor Assignment 1 - Writing Bash Scripts Program Description In this recitation, you will write a BASH script which will backup a directory, keeping only the last N days of backups (default 5). Your script should be able to change this value via the command-line. The skills that you will demonstrate Ability to write a bash program Ability to access command line arguments Ability to run programs from your script and capture the output Ability to use tar and gzip to pack a directory into a compressed Ale Complete the following tasks. You may receive guidance from your instructor or other students. All code that you submit should be written by you. 1. Obtain the name of the directory from the command line as a required parameter. 2. Check for an optional switch and parameter (-t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
