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 >
Text File  |  1995-03-21  |  8KB  |  189 lines

  1. Tech Note Number:              9306
  2. Date:                          August 02, 1993
  3. Subject:                       Procedures For Restoring From An Export
  4.                                Tape
  5. Keywords:                      Restore, Import, Export, Non-managed,
  6.                                Tape
  7. Affected Products:             TNA versions 2.0d, 2.0e, 2.0f and 2.0g
  8.  
  9. Introduction
  10.  
  11. This Tech Note describes and provides examples of the procedures used
  12. to restore data from export tapes.  TNA does not keep track of what
  13. files are put to tape during export operations within its history
  14. databases.  In order to restore data from an export tape, the data must
  15. first be located on tape and brought back using command line
  16. operations.
  17.  
  18. Use TNAUTIL /J to journal the tape and locate the desired fileset.
  19. Once located, data can be restored based on a specific file, directory,
  20. complete fileset or entire tape.
  21.  
  22. The format of the command line to restore from an export consists of
  23. the TNA2DISK command followed by parameters as follows:
  24.  
  25. TNA2DISK  /[TYPE]  /[OVERWRITE] /[FILESET] SERVERNAME/VOLUME: \PATHNAME
  26.              3          3           3                3      DBD   3
  27.              3          3           3                3       3    3
  28.           Required      3           3                3       3    3
  29.                         3           3                3       3    3
  30.                      Optional       3                3       3    3
  31.                                     3                3       3    3
  32.                                 Optional             3       3    3
  33.                                                      3       3    3
  34.                                                      3       3    3
  35.                                                  Required    3    3
  36.                                                              3    3
  37.                                                              3 Required
  38.                                                              3
  39.                                                        The space
  40.                                                   is required
  41.                                                   here.
  42.  
  43.                VALID VALUES FOR THE TYPE FIELD
  44.  
  45. /RO - Restore Original - used to restore data to the original
  46.       location on disk.
  47.  
  48. /RR - Retrieve Redirect - used to redirect data to new
  49.       location on disk.  A target location must be specified
  50.       along with the source location.  This option maintains
  51.       the directory structure.
  52.  
  53. /RF - Retrieve Flat - used to redirect data WITHOUT
  54.       rebuilding the directory structure.  A target location
  55.       must be specified along with the source location.  All
  56.       files will be restored to a single directory.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.              VALID VALUES FOR THE OVERWRITE FIELD
  64.  
  65.  
  66. /OO - Only overwrite disk file if file on tape is newer.
  67.  
  68. /OA - Always overwrite files on disk with those from tape.
  69.  
  70. /OP - Prompt before overwriting disk file.
  71.  
  72. /ON - Never overwrite a file that exists on disk.
  73.  
  74.  
  75.              VALID VALUES FOR THE FILESET FIELD
  76.  
  77. /N# - Retrieve from the numbered fileset
  78.       (Where # is the fileset number on tape.  This can be
  79.        determined by journaling the tape and counting
  80.        filesets displayed starting with the {TPA} fileset,
  81.        which is always the "/N1" fileset.)
  82.  
  83. /D  - Retrieve from the named fileset.
  84.       The fileset name is displayed on the fileset column of
  85.       the tape journal.   You must use quotes around the name
  86.       only if it contains spaces or special characters.
  87.       (Note that only the first seven characters will be
  88.       displayed, if the fileset name exceeds seven
  89.       characters, you should use the /Nx option instead.)
  90.  
  91. /I  - Ignore the databases for this operation
  92.       Use this option instead of a /D or /N if you want TNA
  93.       to search the entire tape.  (Note that the entire tape
  94.       will be searched).
  95.  
  96. (Use only one option for the restore type, overwrite, and
  97.  fileset fields per command line.)
  98.  
  99. Examples of properly formatted command lines to restore from
  100. a non-managed (export) tape:
  101.  
  102. In the following examples
  103.          Files were backed up from -  LAB/ENGR:    (SOURCE)
  104.          Restoring to              -  LAB/ENGR:    (TARGET)
  105.  
  106. TNA2DISK /RO /OO /DTESTONE LAB/ENGR: \*.*
  107.  
  108.          This will restore to the original location LAB/ENGR:
  109.          Overwrite only if the file on tape is more recent.
  110.          Perform the restore from the fileset named TESTONE.
  111.  
  112. TNA2DISK /RO /OO /N3 LAB/ENGR: \*.*
  113.  
  114.          This will do the same as the above example except
  115.          that it will use the third fileset on the tape to
  116.          perform the restore rather than a named fileset.
  117.  
  118.  
  119.  
  120. In the following examples
  121.          Files were backed up from LAB/ENGR:     (SOURCE)
  122.          Restoring the files to    PAL/SYS:      (TARGET)
  123.  
  124. TNA2DISK /RR=PAL/SYS:\ /OO /N3 LAB/ENGR: \*.*
  125.  
  126.          This command will restore all files from LAB/ENGR:
  127.          to PAL/SYS: and will recreate all directory
  128.          structures as needed starting at the root of
  129.          PAL/SYS:.  It will use the third fileset on tape and
  130.          overwrite older files if necessary.
  131.  
  132.  
  133. TNA2DISK /RF=PAL/SYS:\DOC /OO /N3 LAB/ENGR: \DOC\*.*
  134.  
  135.          This will restore all files from fileset #3 from
  136.          LAB/ENGR: in the \DOC directory and its sub-
  137.          directories to the \DOC directory on the PAL/SYS:
  138.          volume.
  139.  
  140. TNA2DISK /RF=C:\QUATRO  /I LAB/ENGR: \123\WK1\*.*
  141.  
  142.           This will scan the entire tape looking for filesets
  143.           from the LAB/ENGR: volume.  If it finds any it will
  144.           read the fileset looking for files in the \123\WK1
  145.           directory and will restore all files from there to
  146.           the C: drive in the \QUATRO directory.
  147.  
  148.  
  149. Example of doing a Full Server Restore from an Export Tape:
  150.  
  151. Assume that the Server is named Gerald and restoring to the
  152. same server name.  Assume that that two volumes are to be
  153. restored, SYS and VOL1.  Also assume that SYS went to tape
  154. first followed by VOL1.
  155.  
  156. The following commands would restore the Bindery, directory
  157. structure and trustees and finally the files on both volumes.
  158.  
  159. TNA2DISK /RN /N2  GERALD/SYS:           (Restores Bindery)
  160. TNA2DISK /RD /N2  GERALD/SYS            (Restores Directory
  161. TNA2DISK /RD /N3  GERALD/VOL1:           trustees)
  162. TNA2DISK /RO /OO /N2  GERALD/SYS: \*.*  (Restores all the
  163. TNA2DISK /RO /OO /N2  GERALD/VOL1: \*.*  files)
  164.  
  165. Database Requirements when restoring from Export Tapes:
  166.  
  167. If no System Control Database exists, then you will have to
  168. install TNA and have it create the Control and History
  169. databases on at least one volume before you will be able to
  170. perform a restore.
  171.  
  172. If the source volume is available, then file history database
  173. files must exist on that volume.  If not you will have to add
  174. the volume to the Protect Volume List before you will be able
  175. to restore from the tape.  (Once the history files have been
  176. created you can immediately delete the volume from your
  177. Protect List if you so desire.  TNA only needs to see history
  178. database files on the volume, the volume does not have to be
  179. on the Protect List.)
  180.  
  181. If the source volume of the export tape is not available or
  182. does not exist, then you will need file history database
  183. files on the the target volume for your restore.  Add the
  184. volume to your Protect List in order to perform the restore.
  185. (Once again you can immediately delete the volume from your
  186. Protect List if you so desire.  TNA only needs to see history
  187. database files on the volume, the volume does not have to be
  188. on the Protect List.)
  189.