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 /var/backups directory.
Expand this content if you need help:
Did you create the home.tar file in /var/backups?
Compress an archive
It may be a good idea to compress the file archives.
Change to the /var/backups directory by using the cd command.
Check the size of the /var/backups/home.tar archive file before compression and redirect the output to archive_sizes.txt.
Expand this content if you need help:
Compress the /var/backups/home.tar 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 /var/backups/home.tar archive file after compression and append the output to archive_sizes.txt.
Compare to the size before compression.
Which file is smaller?
/var/log/backups/home.tar
/var/log/backups/home.tar.gz

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!