System Administration Guide: Devices and File Systems

ProcedureHow to Determine Which Tapes to Use

  1. Ask the user for the approximate date the files to be restored were last modified.

  2. Refer to your backup plan to find the date of the last backup that contains the file or file system.

    To retrieve the most recent version of a file, work backward through the incremental backups from highest to lowest dump level and from most recent to least recent date, unless the user requests otherwise.

  3. If you have online archive files, identify the correct media.

    # ufsrestore ta archive-name ./path/filename ./path/filename

    Lists each file on the tape.


    Reads the table of contents from the online archive file instead of from the tape.


    Identifies the online archive file name.


    Identifies the file name or file names you are looking for on the online archive. If successful, the ufsrestore command prints out the inode number and file name. If unsuccessful, ufsrestore prints an error message.

    For more information, see the ufsrestore(1M) man page.

  4. Insert the media that contains the files to be restored in the drive and verify the correct media.

    # ufsrestore tf /dev/rmt/n ./path/filename ./path/filename

    Be sure to use the complete path for each filename. If a file is in the backup, its name and inode number are listed. Otherwise, a message states that the file is not on the volume.

  5. If you have multiple backup files on the same tape, position the tape at the backup file you want to use.

    # ufsrestore xfs /dev/rmt/n tape-number

Example 27–1 Determining Which Tapes to Use

The following example shows how to check if the /etc/passwd file is in the online archive.

# ufsrestore ta /var/tmp/root.archive ./etc/passwd

The following example shows how to verify that the /etc/passwd file is on the backup tape.

# ufsrestore tf /dev/rmt/0 ./etc/passwd