Interactive Restore The restore Commands

The restoreufsrestore command has the following form: restore options arguments [files_and_dirs] Or, alternatively ufsrestore options arguments [files_and_dirs] where options A list of options arguments A list of arguments corresponding to selected options files_and_dirs A list of files and directories to be retrieved from the tape: if omitted, the default is the entire tape As with the dumpufsdump command, the order of the options and corresponding arguments is extremely important. The most important options are: Option Meaning r Read and restore the entire tape R Resume a partially completed restoration operation x Extract all files and directories listed and restore them in the current directory. Each file must have a complete path name relative to the root directory of the filesystem being restoredfor example, to restore the file abcfilename from the dump of the a filesystem, the file bcfilename must be specified t Type the names of the listed files and directories on the tape f The corresponding argument is the name of the file or device specified by the special file holding the dump. If omitted, the default is the tape mounted on the default tape drive h If a name in the files_and_dirs list is a directory, only the empty directory should be restored, not the files that are within it i Enter interactive mode

12.5.1.3 Interactive Restore

The whole restoration procedure is much simpler once the interactive restore mode the restoreufsrestore command with the i option has been entered. Once invoked, a restore menu appears, providing a user−friendly environment convenient for a comprehensive dialogue. A system administrator can scan the contents of the tape, choose files for extraction, reselect files, and perform other activities. The restore procedure is controlled by a number of designated restore commands subcommands. The quit command is available to quit the interactive restore mode. The interactive restore mode is illustrated below the example is from HP−UX 10.20. usrsbinrestore −ibf 96 devrmt0mn Enter interactive restore mode. restore help Display help report. Available commands are: ls [arg] − list directory 293 ... If no arg is supplied, the current directory is used restore what List the tape header. Dump date: Wed Mar 10 13:36:38 1999 Dumped from: the epoch Level 0 dump of on apollo :devvgoolvol1 Label: none restore ls List the root directory on the tape. .: X11 mail preserve statmon yp adm ncs rbootd stm export news run tmp log opt sam uucp lost+found ppl spool vue restore cd adm Change the current tape directory. restore ls List the new directory on tape. . adm: .sh_history lp streams OLDsulog nettl.LOG00 sulog acct new._ACL sw automount.log new._OWNER syslog btmp new._PROD_DFLT_ACL utmp cron ptydaemonlog wtmp diag rc.log wtmpx dumpdates rpc.lockd.log eisa rpc.statd.log restore cd lp Change the current tape directory. restore ls List the new directory on tape. . admlp: log oldlog restore cd .. Change to the previous directory on the tape restore add btmp Select files to be restored; files are not restore add utmp restored until extract is entered restore add wtmp restore ls Re−list the directory on the tape; .adm: Selected files are marked with an asterisk. .sh_history lp streams OLDsulog nettl.LOG00 sulog acct new._ACL sw automount.log new._OWNER syslog btmp new._PROD_DFLT_ACL utmp cron ptydaemonlog wtm p diag rc.log wtmpx dumpdates rpc.lockd.log eisa rpc.statd.log restore add cron Select a directory to be restored restore ls Relist the directory on the tape .adm: .sh_history lp streams OLDsulog nettl.LOG00 sulog 294 delete btmp Cancel one of the selected files and remove the file from the extract list restore ls Relist the directory on the tape . adm: .sh_history lp streams OLDsulog nettl.LOG00 sulog acct new._ACL sw automount.log new._OWNER syslog btmp new._PROD_DFLT_ACL utmp cron ptydaemonlog wtmp diag rc.log wtmpx dumpdates rpc.lockd.log eisa rpc.statd.log restore extract Restore selected files and directory. It takes a while to restore selected data from the tape into the current directory. restore quit Exit the interactive restore.

12.5.2 The frecover Command