In this project you need to create a backup script. You are allowed to use only shell commands or your own additional scripts written in bash. You cannot use perl scripts or your worn C/C++ programs.
The script schould create a zip archive of the directory specified as a named argument source and save this zip archive inside the directory specified as named argument saveto (or if the argument is not given in the default directory hardcoded within the script file). If an additional argument copyto is given, the script should take this argument as the name of the share folder, mount this folder, and ocpy the archive file to the fodler as well. The login name and passwords can be either passed to the script by using the named arguments login and pass, or if omitted the script should prompt the user for them (note: use timed out prompt to limit the waiting time).
The script should save the archive file under the name specified by the argument name with the date prefix. For example, if the user runs the command:
$> ./backup --source:/home/dementiev/ist334 --saveto:/backup/data --name:proglangthe script should create a file named proglang_2006_04_25.zip in the folder /backup/data.
In addition to creating the archives the script should make sure than you do not store more than 10 old archives in the specified directory. If you do, the script should remove the oldest copies.
The commands to use (recommended):
$ mount -t smbfs -o username=daniel,password=mypass //ist-cit/daniel myprogswhere //ist-cit/daniel is the name of the network drive you would like to map, and myprogs is the name of the directory (in the current directory), to which you want to map the network drive