Information Technology Reference
In-Depth Information
To perform a backup to a remote tape drive, the system with the tape drive
must have an entry in its /.rhosts file for the system to be backed up. This
entry should have the following form:
system root
where system is the hostname of the system being backed up. This gives the
root account on system root privileges to the system with the tape drive. To
use the tape drive of the remote system, specify that system name (separated
by a colon) before the special device name of the tape drive. For example, to
back up the /usr file system of the system solaris using the tape drive of the
pluto system, enter the following line in the /.rhosts file on pluto :
solaris root
On solaris , enter the following command:
# ufsdump 0ucf pluto:/dev/rmt/0 /usr
Restoring a File System Using the ufsrestore Command
The ufsrestore command is used to restore a file system backed up using the
ufsdump command. Like the ufsdump command, the ufsrestore command
supports an f dump_file command-line argument for identifying the media
that contains the backup. If not specified, the /dev/rmt/0 device is used by
default. The following listing shows using the ufsrestore command to restore
a file system backup from the /dev/rmt/1 device to the current directory:
# ufsrestore f /dev/rmt/1
The ufsrestore command also supports an interactive restore capability that
is enabled using the i command-line argument. The restoresmytable file is
used to record information about incremental restores. In the event that an
entire file system is restored from a full backup, be sure to delete this file
before restoring, otherwise ufsrestore will not restore the files listed in the
restores mytable because it will appear that they have already been restored.
Restoring Selected Files Using the ufsrestore Command
The ufsrestore command can be used to restore selected files from a back-
up instead of the entire file system. You do this by using the extract ( x ) com-
mand-line argument. The files or directories to be restored from the backup
are also listed as command-line arguments on the ufsrestore command.
The following listing shows how you extract the /etc/password file and the
/etc/default directory (and its contents) from a backup of the root file sys-
tem on the /dev/rmt/1 device and restore them to the /etc directory:
# ufsrestore xf /dev/rmt/1 /etc/passwd /etc/default
Search WWH ::




Custom Search