Given the following output from df and/etc/dumpdate. Identify the steps needed t
ID: 3774396 • Letter: G
Question
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
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.