System Administration Guide: Basic Administration

How 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 level and most recent to least recent, unless the user requests otherwise.

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


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

    t

    Lists each file on the tape. 

    a

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

    archive-name

    Identifies the online archive file name. 

    ./path/filename

    Identifies the file name(s) 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 ufsrestore(1M).

  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 the filename(s). If a file is in the backup, its name and inode number is listed. Otherwise, a message says that the file is not on the volume.

  5. (Optional) If you have multiple dump files on the same tape, position the tape at the dump file you want to use.


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

Examples—Determining Which Tapes to Use

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


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

The following example show to verify that the /etc/passwd is on the backup tape.


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