Question
Q4 Unix: Noob at this Need help on these questions, Rating will be added. Please show using program, please and thanks Backup and Restore Using
Q4 Unix: Noob at this Need help on these questions, Rating will be added. Please show using program, please and thanks
Backup and Restore Using cpio and find Commands, output redirection operator > and input redirection operator <. The minimum cpio options you must know are d, i, o, and v.
1) Make your login directory as your working directory
2) Using the find command and the cpio command, create a backup file called backup containing all the files in your login directory. To do backup, pipe the standard output of the find command to the cpio command and redirect the cpio standard output to the file named, backup like find . | cpio options > backup. Use appropriate options in the place of options in the cpio command to do backup. Do not type the word option. Must use verbose option in addition to other required options so that the list of files being backed will be displayed on the monitor. Make sure you use relative path in the find command to generate the list of files with relative path; otherwise you will not be able to restore the files in the restore directory.
3) Display the attributes of the backup file
4) Create the directory restore under your login directory
5) Copy the backup file from your login directory to the restore directory
6) Change working directory to restore
7) Issue pwd command
8) Display the attributes of the files in the restore directory
9) Restore the files from the backup file into the restore directory. Redirect input using < operator from backup file to the cpio command. Must use verbose option and create directory option in addition to other required options so that the list of files being restored will be displayed on the monitor and subdirectories will be created.
10) Display the attributes of the files restored files in the restore directory
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