linux !#bin/bash Backup Files Write a bash script to backup files. The script can take 0, 1 or 2 arguments. When there are 0 or more than 2 arguments, the script should print out the usage of the...


linux !#bin/bash


Backup Files Write a bash script to backup files. The script can take 0, 1 or 2 arguments. When there are 0 or more than 2 arguments, the script should print out the usage of the program on the screen. When there is 1 argument, the program should take the argument as source directory and backup all the files (not include directories) in the source directory. If the source directory does not exist, the program should print out the error message and the usage of the program on the screen. If the source directory exist, create a subdirectory inside source directory named ”backup-yyyy-mm-dd” and copy all the files in source



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here