SPARCbook Portable Workstation User Guide
14-5
Backup and Restore
Backing Up Filesystems
Backing up partitions to tape
To make backups of the individual disk partitions on your removable
hard disk drive, the following sequence of commands could be used,
one for each partition to be backed up:
#
ufsdump 0cfb /dev/rmt/0n 64 /
(slice 0)
#
ufsdump 0cfb /dev/rmt/0n 64 /var
(slice 3)
#
ufsdump 0cfb /dev/rmt/0n 64 /opt
(slice 5)
#
ufsdump 0cfb /dev/rmt/0n 64 /usr
(slice 6)
The options used in these examples specify a level
0
or full backup,
using a cartridge tape at
/dev/rmt/0n
, where
n
specifies the “no
rewind”. The no rewind is most important for this type of backup
scenario to prevent each subsequent dump from overwriting the last. In
this case, the argument
/dev/rmt/0n
corresponds with the
f
option,
and the
64
argument corresponds with the
b
(block size) option.
Caution
It is important to restore the partitions in the same order they where backed up.
Making a complete tape backup – worked example
This example creates a tape backup of the backup
partition
of your
removable hard disk drive. This is special partition that spans the whole
drive to make backing up the entire contents of the removable hard disk
drive more convenient.
1.
Connect a tape drive to your SPARCbook at ID 5.
2.
Power on the external drives and your SPARCbook.
3.
When the OpenBoot greeting is displayed, press
Pause-A
on the
keyboard. The OpenBoot
ok
prompt is displayed.
4.
Boot the SPARCbook with the following command:
ok
create no-resume?
ok
boot -r
5.
Log in as root.
S3UG4_Book Page 5 Friday, August 8, 1997 11:37 am