Backup and Restore
Restoring Filesystems
14-6
SPARCbook Portable Workstation User Guide
6.
At the Solaris command prompt, type the appropriate
ufsdump
command. For example, to create a full backup of the entire disk
c0t0d0
on a 5.0 Gbyte tape unit 0:
#
ufsdump 0cfb /dev/rmt/0n /dev/rdsk/c0t0d0s2
Backing up onto an external hard disk
Disk partitions can also be backed up to another locally connected disk
drive with the
ufsdump
command (see “Configuring an External Hard
Disk – Worked Example” on page
7-6 for information about
configuring an external disk drive). The disk in that example had one
large filesystem called
/external
mounted on
root
.
For example, to backup each partition in turn to an external hard disk,
the commands would have the following form:
#
ufsdump 0f /external/usr_arch_ddmmyy /usr
Where:
/usr_arch_ddmmyy
is the name of the dump file. The
_arch
element used in
this example is an arbitrary reminder to the user at a
future date that this is an archive, and
ddmmyy
provides
an arbitrary date stamp.
Restoring Filesystems
Filesystems can be restored from a
ufsdump
archive using the
ufsrestore
command.
Caution
It is important to restore the partitions in the same order they where backed up. See
the example in “Backing up partitions to tape” on page 14-5.
Carry out the restore procedure as follows:
1.
Connect the backup drive to your SPARCbook. A tape drive
should be connected at SCSI ID 5 or an external hard disk drive
at SCSI ID 0, 1 or 2.
S3UG4_Book Page 6 Friday, August 8, 1997 11:37 am