Redirecting restores to a different target

When specifying different targets and paths during a restore, it is important to know how NetBackup uses target configuration files during backups and restores.

During a backup, NetBackup uses the target configuration to determine how to access a server and which resources to back up. As used here, the term “resource” refers to volumes, directories, and files.

During a restore, NetBackup uses the information in the target configuration to determine how to access a server but does not use the information about resources. Instead, NetBackup attempts to restore the files to the same named resource from which they were backed up. If this resource does not exist on the target server, the restore fails.

To redirect files to a different target without specifying a different path

  • On the Main Menu, type r.
  • On the Restore Backups menu, type a to specify a destination target.
  • In the New Restore From Target field, type the name of the target (saved during a previous backup) that you want to restore to a different target and press Enter, or leave this field blank and press Enter to use the Current Restore From Target as the source target.
  • In the New Restore To Target field, type the name of the different target where you want to restore the files, and then press Enter.
  • Review the information presented to you. If it is correct, type y to accept the target specifications.

During the restore, NetBackup restores all files from the Current Restore From Target (the target the files were originally backed up from) to the New Restore To Target (the different target).

Note: Specifying a different target creates an altpath.nnn file in the SYS:\VERITAS\NBUCLT\NETBACK\LOGS directory. You must manually delete these files.

To redirect files to a different target and path

  • On the Main Menu, type r.
  • On the Restore Backups menu, type a to specify a destination target.
  • In the New Restore From Target field, type the name of the target (saved during a previous backup) that you want to restore to a different target and press <Enter>, or leave this field blank and press <Enter> to use the Current Restore From Target as the source target.
  • In the New Restore From Target field, type the name of target that you want to restore to followed by a forward slash (/) and the new path, as in the following example:
NEWTGT/VOLUME/DIR 
Note: When redirecting to a different target and path, you must always type the target name even if the Current Restore From Target and New Restore To Target are the same.
  • Select the namespace to use when renaming files, and then press <Enter>.

NetBackup supports the following namespaces:

LONG

DOS

Macintosh

NFS

FTAM

Only the namespaces relevant on the destination machine appear as selections. The path where you intend to restore the files must be using the same type of namespace.

Note: If the new name does not conform to the requirements of the specified namespace, the restore will fail. For example, if you specify a DOS namespace and the new name generated does not conform to the 8.3 DOS format, the file cannot be created and an error occurs.

More Information