[EdCert previous] [EdCert next] [EdCert top]

Lab Exercises for Backups

Note: before doing any of these exercises you will need make sure the tape drive is properly connected to the system you are using.

Note for SGI users: Because of the tape drive we are using, you will have to use an additional argument to the tar command to specify the blocking factor to be used. You will want to add the option b 20 to your tar commands, for example:

# tar cb 20 /file

Exercise 1

  1. Using the tar command, create a tape archive containing the following files:
  2. Once the backup is complete, write out a table of contents.
  3. Use dd to place the entire archive in /tmp.
  4. Check the contents of the stuff file.
  5. Remove the archive from /tmp.
  6. Using tar, restore the /stuff file from tape.

Exercise 2

  1. Using a non-rewinding tape device, recreate the archive of /stuff, /etc/passwd, and /usr/share/lib/terminfo.
  2. Using cpio and find create a backup of /etc/resolv.conf. Place this archive at the end of the previous tar archive you created on the tape.
  3. cd into /etc and rename the resolv.conf file old.resolv.conf.
  4. Restore /etc/resolv.conf from the tape. Note: because there are two archives on the tape, it must be in the proper position before you issue the commands to restore the file.
  5. Do an nslookup on usenet.ucs.indiana.edu to see if the resolv.conf was restored properly.
  6. If the file was properly restored, remove old.resolv.conf.



[EdCert previous] [EdCert next] [EdCert top]