Backup and restoration of directory in pen/external drive
Hi,
I want to create bash shell scripts to backup and restore specific directories ( given as command line arguments) recursively without explicitly using a backup utility. The backup is to be done to a pen/external drive attached to system via USB port. First check that the USB drive has enough disk space and then backup the directory tree structure given in the form of argument to the script. Both during backup and restoring the existing file permissions should be maintained. Also, allow compression and verbose options that allow you to create compressed files for backup and restoration and print out incrementally the status of the back up process (without using rsync and tar commands).
|