JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Devices and File Systems
search filter icon
search icon

Document Information

Preface

1.  Managing Removable Media (Overview)

2.  Managing Removable Media (Tasks)

3.  Accessing Removable Media (Tasks)

4.  Writing CDs and DVDs (Tasks)

5.  Managing Devices (Overview/Tasks)

6.  Dynamically Configuring Devices (Tasks)

7.  Using USB Devices (Overview)

8.  Using USB Devices (Tasks)

9.  Using InfiniBand Devices (Overview/Tasks)

10.  Managing Disks (Overview)

11.  Administering Disks (Tasks)

12.  SPARC: Adding a Disk (Tasks)

13.  x86: Adding a Disk (Tasks)

14.  Configuring Oracle Solaris iSCSI Targets and Initiators (Tasks)

15.  The format Utility (Reference)

16.  Managing File Systems (Overview)

17.  Creating ZFS, UFS, TMPFS, and LOFS File Systems (Tasks)

18.  Mounting and Unmounting File Systems (Tasks)

19.  Using The CacheFS File System (Tasks)

20.  Configuring Additional Swap Space (Tasks)

21.  Checking UFS File System Consistency (Tasks)

22.  UFS File System (Reference)

23.  Backing Up and Restoring UFS File Systems (Overview)

Where to Find UFS Backup and Restore Tasks

Introduction to Backing Up and Restoring UFS File Systems

Why You Should Back Up File Systems

Planning Which UFS File Systems to Back Up

Choosing the Type of Backup

Choosing a Tape Device

High-Level View of Backing Up and Restoring UFS File Systems (Task Map)

Considerations for Scheduling Backups

How Often Should You Do Backups?

Backup Interval Terms and Definitions

Guidelines for Scheduling Backups

Using Dump Levels to Create Incremental Backups

Example--Dump Levels for Daily, Cumulative Backups

Example--Dump Levels for Daily, Incremental Backups

Sample Backup Schedules

Example--Daily Cumulative, Weekly Cumulative Backup Schedule

Tape Requirements for the Daily Cumulative, Weekly Cumulative Schedule

Example--Daily Cumulative, Weekly Incremental Backup Schedule

Tape Requirements for the Daily Cumulative, Weekly Incremental Backup Schedule

Example--Daily Incremental, Weekly Cumulative Backup Schedule

Tape Requirements for Daily Incremental, Weekly Cumulative Schedule

Example--Monthly Backup Schedule for a Server

24.  Backing Up UFS Files and File Systems (Tasks)

25.  Using UFS Snapshots (Tasks)

26.  Restoring UFS Files and File Systems (Tasks)

27.  UFS Backup and Restore Commands (Reference)

28.  Copying UFS Files and File Systems (Tasks)

29.  Managing Tape Drives (Tasks)

Index

Introduction to Backing Up and Restoring UFS File Systems

Backing up file systems means copying file systems to removable media, such as tape, to safeguard against loss, damage, or corruption. Restoring file systems means copying reasonably current backup files from removable media to a working directory.

This chapter describes the ufsdump and ufsrestore commands for backing up and restoring UFS file systems. Other commands are available for copying files and file systems for the purpose of sharing or transporting files. The following table provides pointers to all commands that copy individual files and file systems to other media.

Table 23-1 Commands for Backing Up and Restoring Files and File Systems

Task
Command
For More Information
Back up one or more file systems to a local tape device or a remote tape device.
ufsdump
Create read-only copies of file systems.
fssnap
Back up all file systems for systems on a network from a backup server.
Solstice Backup software
Solstice Backup 6.1 Administration Guide
Back up and restore an NIS+ master server.
nisbackup and nisrestore
Copy, list, and retrieve files on a tape or diskette.
tar, cpio, or pax
Copy the master disk to a clone disk.
dd
Restore complete file systems or individual files from removable media to a working directory.
ufsrestore

Why You Should Back Up File Systems

Backing up files is one of the most crucial system administration functions. You should perform regularly scheduled backups to prevent loss of data due to the following types of problems:

Planning Which UFS File Systems to Back Up

You should back up all file systems that are critical to users, including file systems that change frequently. The following tables provide general guidelines on the file systems to back up for stand-alone systems and servers.

Table 23-2 File Systems to Back Up for Stand-alone Systems

File System to Back Up
Description
Back Up Interval
root (/) – slice 0
This file system contains the kernel and possibly the /var directory. The /var directory contains temporary files, logging files, or status files, and possibly contains frequently updated system accounting and mail files.
At regular intervals such as weekly or daily
/usr – slice 6, /opt
The /usr and /opt file systems contain software and executables. The /opt directory is either part of root (/) or is its own file system.
Occasionally
/export/home – slice 7
This file system can contain the directories and subdirectories of all users on the stand-alone system.
More often than root (/) or /usr, perhaps as often as once a day, depending on your site's needs
/export, /var, or other file systems
The /export file system can contain the kernel and executables for diskless clients. The /var directory contains temporary files, logging files, or status files.
As your site requires

Table 23-3 UFS File Systems to Back Up for Servers

File System to Back Up
Description
Back Up Interval
root (/) – slice 0
This file system contains the kernel and executables.
Once a day to once a month depending on your site's needs.

If you frequently add and remove users and systems on the network, you have to change configuration files in this file system. In this case, you should do a full backup of the root (/) file system at intervals between once a week and once a month.

If your site keeps user mail in the /var/mail directory on a mail server, which client systems then mount, you might want to back up root (/) daily. Or, backup the /var directory, if it is a separate file system.

/export – slice 3
This file system can contain the kernel and executables for diskless clients.
Once a day to once a month, depending on your site's needs.

Because the information in this file system is similar to the server's root directory in slice 0, the file system does not change frequently. You need to back up this file system only occasionally, unless your site delivers mail to client systems. Then, you should back up /export more frequently.

/usr – slice 6, /opt
The /usr and /opt file systems contain software and executables. The /opt directory is either part of root (/) or is its own file system.
Once a day to once a month, depending on your site's needs.

These file systems are fairly static unless software is added or removed frequently.

/export/home – slice 7
This file system can contains the home directories of all the users on the system. The files in this file system are volatile.
Once a day to once a week.

Choosing the Type of Backup

You can perform full or incremental backups by using the ufsdump command. You can create a temporary image of a file system by using the fssnap command. The following table lists the differences between these types of backup procedures.

Table 23-4 Differences Between Types of Backups

Backup Type
Result
Advantages
Disadvantages
Full
Copies a complete file system or directory
All data is in one place
Requires large numbers of backup tapes that take a long time to write. Takes longer to retrieve individual files because the drive has to move sequentially to the point on the tape where the file is located. You might have to search multiple tapes.
Snapshot
Creates a temporary image of a file system
System can be in multiuser mode
System performance might degrade while the snapshot is created.
Incremental
Copies only those files in the specified file system that have changed since a previous backup
Easier to retrieve small changes in file systems
Finding which incremental tape contains a file can take time. You might have to go back to the last full backup.

Choosing a Tape Device

The following table shows typical tape devices that are used for storing file systems during the backup process. The storage capacity depends on the type of drive and the data being written to the tape. For more information on tape devices, see Chapter 29, Managing Tape Drives (Tasks).

Table 23-5 Typical Media for Backing Up File Systems

Backup Media
Storage Capacity
1/2-inch reel tape
140 MB (6250 bpi)
2.5-GB 1/4-inch cartridge (QIC) tape
2.5 GB
DDS3 4-mm cartridge tape (DAT)
12–24 GB
14-GB 8-mm cartridge tape
14 GB
DLT 7000 1/2-inch cartridge tape
35–70 GB