We would like to perform regular backups of partitions drive to external data storage.
Write a script that backs up disk partitions in parallel. The script will have n arguments. Various arguments script defines the names of partitions to be backed up.
For simplicity, in the script, you can set two variables. The first will refer to the external storage device. The second will refer to the folder in which will be assembled this external storage.
Backup begin only when they successfully managed to mount external storage. After the end of any deposits, remove the external storage.
For each backed up partition, the script will list information about the backup (STDOUT) backup errors (STDERR) in a separate file in the destination directory.
For solving the problem follow these steps:
We prepared for you video course Marian's BASH Video Training: Mastering Unix Shell, if you would like to get much more information.
Thank you. Marian Knezek