Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given the following output from df and/etc/dumpdate. Identify the steps needed t

ID: 3774396 • Letter: G

Question


Given the following output from df and/etc/dumpdate. Identify the steps needed to perform the three restores requested. Enumerate your assumptions. Assume that the sate of the restore request is January 18. Df output from the machine khaya.cs.colorado.edu:/dev/hda8 256194 81103 161863 33%//dev/hda1 21929 4918 15879 24%/boot/dev/hda6 3571696 24396 3365934 1%/local/dev/hda10 131734 5797 119135 5%/tmp/dev/hda5 1815580 1113348 610004 65%/ust/dev/hda7 256194 17013 225953 7%/var/etx/dumpdates from khaya.cs.colorado.edu:/dev/hda8 2 Sun Jan 17 22:59:23 2010/dev/hda6 3 Sun Jan 17 22:51:51 2010/dev/hda7 3 Sun Jan 17 22:50:24 2010/dev/hda5 9 Sun Jan 17 22:46:25 2010/dev/hda5 1 Tue Jan 12 22:45:42 2010/dev/hda7 0 Tue Jan 12 23:14:47 2010/dev/hda6 1 Tue Jan 12 23:14:32 2010/dev/hda8 1 Tue Jan 12 23:14:17 2010/dev/hda6 0 Sun Jan 10 22:47:31 2010/dev/hda1 1 Fri Jan 8 22:16:05 2010/dev/hda7 1 Thu Jan 7 22:08:09 2010/dev/hda1 4 Sun Jan 3 22:51:53 2010/dev/hda7 2 Thu Dec 24 22:53:52 2009/dev/hda5 0 Tue Nov 3 22:46:21 2009/dev/hda1 0 Mon Sep 21 22:46:29 2009/dev/hda8 0 Mon Aug 24 23:01:24 2009/dev/hda1 3 Wed Jul 29 22:52:20 2009/dev/hda6 2 Wed Jul 29 23:01:32 2009 "Please restore my entire home directory(/usr/home/elements) from sometime in the last few days. I seem to have lost the entire code for my senior project".

Explanation / Answer

To Restore the Home director follow the below steps in your terminal.

In simple we can achieve this by taking the backup to second hard disk, with simple steps below.

First have to find the disk and the partition exist.

                                                                sudo fdisk -l

It will display the available partition and disk that exist.

Then change it to the Media directory.

                                                               cd /media

create a directory called disk 1

                                                                cd disk1

You can enter the following command to back up the directory to TAR file. ex. mybackup.tag.gz

                                        tar czvf mybackup.tar.gz /home/myhomedirectory

this creates a file called mybackup.tar.gz in the /media/disk1 directory which is a backup of the home directory called myhomedirectory.

To restore, all I did under Crunchbang was to mount the second disk (as above) and from my Home directory enter:

                                                       tar xzvf mybackup.tar.gz

This restores the contents of the tar file into the root of my home directory. It includes the folder structure from root, but that is fine as it then allows me to copy over what I need for my new distro. I can then delete what is not needed. Furthermore, file permissions are maintained.

Verywell you can use the directory name that is available in your system to restore the home directory completely.

$cd /home/clements/
cwd is: /home/clement
$ dir
$ mark khaya.cs.colorado.edu
$done

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote