Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description of Tasks You will be required to develop a UNIX based Shell Script to automate management tasks for a Linux Operating System. The solution

Description of Tasks

You will be required to develop a UNIX based Shell Script to automate management tasks for a Linux Operating System. The solution will be a menu driven program that provides the systems administrator options to run the following automated tasks:

1 Backup User Profile

The script should perform the following subtasks:

Prompt the systems administrator for a username.

Create a compressed archive as backup of user home directory contents.

Save this backup file to /home/backups.

The backup file should be uniquely timestamped.

Your program should not perform this option if the user account doesnt exist on the system.

The script should display appropriate status messages that informs the systems administrator of the processes that are taking place and the success/failure of the tasks.

2 Restore User Profile

The script should perform the following subtasks:

Prompt the systems administrator for a username.

Verify the backup file exists in /home/backups directory for that username

Delete all files/folders under the user directory

Extract all files/folders from backup archive to user directory

Your program should not perform this option if the user account doesnt exist on the system.

The script should display appropriate status messages that informs the systems administrator of the processes that are taking place and the success/failure of the tasks.

3 Quit the program

The script should terminate when this option is selected.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Optimization Of Logistics And Supply Chain Systems Theory And Practice

Authors: Turkay Yildiz

1st Edition

1540716198, 978-1540716194

Students also viewed these General Management questions