This section describes the process of
restoring the compressed tar file of your home directory that was
previously created. Just as
tar
can combine files to a single archive
file, it can also be used to restore them. To restore files in your
home directory, perform the following steps:
- Make a new directory and change to
it. In the home directory, make a new directory and change to it
to prevent overwriting files. This will create a separate
directory to temporarily hold the restored archived file in.
$ cd
$ mkdir newhome
$ cd newhome
- Extract the home directory from
tape. The x option extracts the previously tarred file from tape
to your current directory (/home/newhome) and the v (verbose)
option lets you see the activity as the file is copied. Since no
file is specified the home.tar.Z, which is the only file on the
tape, file will be copied to the current directory.
$ tar xv
- Uncompress the compressed tar file.
Once the file has been copied from tape to the newhome directory,
you can uncompress the home.tar file.
$ uncompress home.tar.Z
- Extract the tar file. Once the file
has been copied from tape to the newhome directory, you can
extract the individual files from the home.tar file.
$ tar xvf home.tar
- Move files as needed. The files in
your newhome directory can now be moved to replace those in you
real home directory.
|
|