Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program Description Write a BASH script which will backup a directory, keeping only the last N days of backups (default 5). Your script should be
Program Description 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. Complete the following tasks: 1. Obtain the name of the directory from the command line as a required parameter. 2. Check for an optional switch and parameter (-t ) which will override the default retention 3. Calculate the name of the backup file based on the directory and the date. Ex: "src 2020 01 27" 4. Use "tar cvfz
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started