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

In Linux
 In Linux 3. Write a function, called backup), that receives a

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!