home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.seagate.com
/
2014.07.ftp.seagate.com.tar
/
ftp.seagate.com
/
pub
/
palindrome
/
technote
/
tn9306.asc
< prev
next >
Wrap
Text File
|
1995-03-21
|
8KB
|
189 lines
Tech Note Number: 9306
Date: August 02, 1993
Subject: Procedures For Restoring From An Export
Tape
Keywords: Restore, Import, Export, Non-managed,
Tape
Affected Products: TNA versions 2.0d, 2.0e, 2.0f and 2.0g
Introduction
This Tech Note describes and provides examples of the procedures used
to restore data from export tapes. TNA does not keep track of what
files are put to tape during export operations within its history
databases. In order to restore data from an export tape, the data must
first be located on tape and brought back using command line
operations.
Use TNAUTIL /J to journal the tape and locate the desired fileset.
Once located, data can be restored based on a specific file, directory,
complete fileset or entire tape.
The format of the command line to restore from an export consists of
the TNA2DISK command followed by parameters as follows:
TNA2DISK /[TYPE] /[OVERWRITE] /[FILESET] SERVERNAME/VOLUME: \PATHNAME
3 3 3 3 DBD 3
3 3 3 3 3 3
Required 3 3 3 3 3
3 3 3 3 3
Optional 3 3 3 3
3 3 3 3
Optional 3 3 3
3 3 3
3 3 3
Required 3 3
3 3
3 Required
3
The space
is required
here.
VALID VALUES FOR THE TYPE FIELD
/RO - Restore Original - used to restore data to the original
location on disk.
/RR - Retrieve Redirect - used to redirect data to new
location on disk. A target location must be specified
along with the source location. This option maintains
the directory structure.
/RF - Retrieve Flat - used to redirect data WITHOUT
rebuilding the directory structure. A target location
must be specified along with the source location. All
files will be restored to a single directory.
VALID VALUES FOR THE OVERWRITE FIELD
/OO - Only overwrite disk file if file on tape is newer.
/OA - Always overwrite files on disk with those from tape.
/OP - Prompt before overwriting disk file.
/ON - Never overwrite a file that exists on disk.
VALID VALUES FOR THE FILESET FIELD
/N# - Retrieve from the numbered fileset
(Where # is the fileset number on tape. This can be
determined by journaling the tape and counting
filesets displayed starting with the {TPA} fileset,
which is always the "/N1" fileset.)
/D - Retrieve from the named fileset.
The fileset name is displayed on the fileset column of
the tape journal. You must use quotes around the name
only if it contains spaces or special characters.
(Note that only the first seven characters will be
displayed, if the fileset name exceeds seven
characters, you should use the /Nx option instead.)
/I - Ignore the databases for this operation
Use this option instead of a /D or /N if you want TNA
to search the entire tape. (Note that the entire tape
will be searched).
(Use only one option for the restore type, overwrite, and
fileset fields per command line.)
Examples of properly formatted command lines to restore from
a non-managed (export) tape:
In the following examples
Files were backed up from - LAB/ENGR: (SOURCE)
Restoring to - LAB/ENGR: (TARGET)
TNA2DISK /RO /OO /DTESTONE LAB/ENGR: \*.*
This will restore to the original location LAB/ENGR:
Overwrite only if the file on tape is more recent.
Perform the restore from the fileset named TESTONE.
TNA2DISK /RO /OO /N3 LAB/ENGR: \*.*
This will do the same as the above example except
that it will use the third fileset on the tape to
perform the restore rather than a named fileset.
In the following examples
Files were backed up from LAB/ENGR: (SOURCE)
Restoring the files to PAL/SYS: (TARGET)
TNA2DISK /RR=PAL/SYS:\ /OO /N3 LAB/ENGR: \*.*
This command will restore all files from LAB/ENGR:
to PAL/SYS: and will recreate all directory
structures as needed starting at the root of
PAL/SYS:. It will use the third fileset on tape and
overwrite older files if necessary.
TNA2DISK /RF=PAL/SYS:\DOC /OO /N3 LAB/ENGR: \DOC\*.*
This will restore all files from fileset #3 from
LAB/ENGR: in the \DOC directory and its sub-
directories to the \DOC directory on the PAL/SYS:
volume.
TNA2DISK /RF=C:\QUATRO /I LAB/ENGR: \123\WK1\*.*
This will scan the entire tape looking for filesets
from the LAB/ENGR: volume. If it finds any it will
read the fileset looking for files in the \123\WK1
directory and will restore all files from there to
the C: drive in the \QUATRO directory.
Example of doing a Full Server Restore from an Export Tape:
Assume that the Server is named Gerald and restoring to the
same server name. Assume that that two volumes are to be
restored, SYS and VOL1. Also assume that SYS went to tape
first followed by VOL1.
The following commands would restore the Bindery, directory
structure and trustees and finally the files on both volumes.
TNA2DISK /RN /N2 GERALD/SYS: (Restores Bindery)
TNA2DISK /RD /N2 GERALD/SYS (Restores Directory
TNA2DISK /RD /N3 GERALD/VOL1: trustees)
TNA2DISK /RO /OO /N2 GERALD/SYS: \*.* (Restores all the
TNA2DISK /RO /OO /N2 GERALD/VOL1: \*.* files)
Database Requirements when restoring from Export Tapes:
If no System Control Database exists, then you will have to
install TNA and have it create the Control and History
databases on at least one volume before you will be able to
perform a restore.
If the source volume is available, then file history database
files must exist on that volume. If not you will have to add
the volume to the Protect Volume List before you will be able
to restore from the tape. (Once the history files have been
created you can immediately delete the volume from your
Protect List if you so desire. TNA only needs to see history
database files on the volume, the volume does not have to be
on the Protect List.)
If the source volume of the export tape is not available or
does not exist, then you will need file history database
files on the the target volume for your restore. Add the
volume to your Protect List in order to perform the restore.
(Once again you can immediately delete the volume from your
Protect List if you so desire. TNA only needs to see history
database files on the volume, the volume does not have to be
on the Protect List.)