Question: Create a backups and a restore directory under / var on the file system. Create a tarball of the / home directory using home.tar as
Create a backups and a restore directory under var on the file system.
Create a tarball of the home directory using home.tar as the archive tarball file name and use the verbose switch to list all files being added to the archive. Create this archive in the varbackups directory.
Expand this content if you need help:
Did you create the home.tar file in varbackups
Compress an archive
It may be a good idea to compress the file archives.
Change to the varbackups directory by using the cd command.
Check the size of the varbackupshometar archive file before compression and redirect the output to archivesizes.txt
Expand this content if you need help:
Compress the varbackupshometar archive using the gzip command.
Notice gzip automatically adds the gz file extension.
Expand this content if you need help:
Check the size of the varbackupshometar archive file after compression and append the output to archivesizes.txt
Compare to the size before compression.
Which file is smaller?
varlogbackupshometar
varlogbackupshometar.gz
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
