Backup and Restore
Backing Up Filesystems
14-4
SPARCbook Portable Workstation User Guide
Backing Up Filesystems
To make backups of a complete filesystem (or single disk partition),
the
ufsdump
command provides an alternative. The general syntax for
the command is as follows:
#
ufsdump options arguments filesystem
Where
options
is a list of options to be used for this backup and
aguments
is a list of arguments that correspond to the list of options in
the same order.
Caution
It is important to supply the arguments in the same order as their corresponding
options . For example:
ufsdump 0sd s-arguments d-arguments filesystems
Failing to observe the correct order could completely destroy the filesystem being
backed up.
For example, to create backup of a disk partition on a 5.0 Gbyte tape
unit 0, the following command would be used:
#
ufsdump 0fu /dev/rmt/0 /dev/rdsk/c0t0d0sn
0fu
is a list of options.
0
specifies the backup level, in this
case a full backup;
u
specifies that the
/etc/dumpdates
file should be updated with a record of this backup; and
f
specifies that the dump is to be directed to something
other than the default device.
/dev/rmt/0
is the device to which the archive is to be directed. This
argument corresponds to the
f
option.
/dev/rdsk/c0t0d0sn
is the raw disk device being backed up where n is the disk
slice. See “Boot Disk Partitions” on page 6-5.
S3UG4_Book Page 4 Friday, August 8, 1997 11:37 am