Question: In Linux 3. Write a function, called backup), that receives a file path as a parameter. The script should then make a gzip'd tarball of
3. Write a function, called backup), that receives a file path as a parameter. The script should then make a gzip'd tarball of the file and move the tarball to the directory ~/backups. Your script may assume that the directory exists, but make sure you make the directory first. Add another function, called restore), that receives a tarball name as a parameter. The function should then try to untar the file if it is in ~/backups. Assume that the file is there but ensure that any errors are re-directed to the the /backups/errors file (hint: modify where stderr is pointing to when you run the program from the command line)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
