Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started