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)

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

Backing Up UFS Files and File System (Task Map)

Preparing for File System Backups

How to Find UFS File System Names

How to Determine the Number of Tapes Needed for a Full Backup

Backing Up a UFS File System

How to Back Up a UFS File System to Tape

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

Preparing for File System Backups

The preparation for backing up file systems begins with planning, which is described in Chapter 23, Backing Up and Restoring UFS File Systems (Overview) and includes choosing the following:

For more information, see Chapter 23, Backing Up and Restoring UFS File Systems (Overview).

This section describes two other tasks you might need to perform before you back up file systems:

How to Find UFS File System Names

  1. Display the contents of the /etc/vfstab file.
    $ more /etc/vfstab
  2. Look in the mount point column for the name of the file system.
  3. Use the directory name listed in the mount point column when you back up the file system.

Example 24-1 Finding File System Names

In this example, the file systems to be backed up are root (/), /usr, and and /export/home.

# more /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t0d0s1       -       -       swap    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no      -
/dev/dsk/c0t0d0s6       /dev/rdsk/c0t0d0s6      /usr    ufs     1       no      -
/dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /export/home    ufs     2       yes     -
/devices        -       /devices        devfs   -       no      -
sharefs -       /etc/dfs/sharetab       sharefs -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -

How to Determine the Number of Tapes Needed for a Full Backup

  1. Become superuser or assume an equivalent role.
  2. Estimate the size of the backup in bytes.
    # ufsdump [0]S file-system

    Use the S option to display the estimated number of bytes that are needed to do the backup if this is the first backup of the file system.

    Use the 0S option to display the estimated number of bytes that are needed to do the backup if this is not the first backup of the file system.

  3. Divide the estimated size by the capacity of the tape to determine how many tapes you need.

    For a list of tape capacities, see Table 23-5.

Example 24-2 Determining the Number of Tapes

In this example, the file system easily fits on a 150-MB tape.

# ufsdump S /export/home
178176