Become superuser.
Shut down the system.
# init 0 |
Bring the system to run-level S (single-user mode).
ok boot -s |
(Optional) Check the file system for consistency with the fsck command.
Running the fsck command using the -m option checks for file system consistency. For example, power failure can leave files in an inconsistent state.
# fsck -m /dev/rdsk/device-name |
(Optional)If you will be backing up file systems onto a remote tape drive:
Identify the device name of the tape drive.
The default tape drive is /dev/rmt/0.
Insert a tape that is not write-protected into the tape drive.
Back up file systems using one of the ufsdump commands listed in Table 5-2.
Table 5-2 Full Backup Commands
To Do Full Backups To ... |
Use This Command ... |
---|---|
Local diskette |
ufsdump9ucf /vol/dev/ files_to_backup |
Local cartridge tape drive |
ufsdump9ucf /dev/rmt files_to_backup |
Remote cartridge tape drive |
ufsdump0ucf remote_host:/ files_to_backup |
When prompted, remove the tape and replace it with the next volume.
Label each tape with the volume number, level, date, system name, and file system.
Bring the system back to run-level 3 by pressing Control-D.
Verify the backup was successful by using the ufsrestore command to display the tape contents.