SUNWcsu
The ufsrestore utility restores files from backup media created with the ufsdump command. ufsrestores’s actions are controlled by the key argument. The key is exactly one function letter (i, r, R , t, or x) and zero or more function modifiers (letters). The key string contains no SPACE characters. Function modifier arguments are listed on the command line in the same order as their corresponding function modifiers appear in the key string.
One (and only one) of the following function letters is required:
example# ufsrestore xfs /dev/rmt/0hn 5
ufsrestore enters interactive mode when invoked with the i function letters. Interactive commands are reminiscent of the shell. For those commands that accept an argument, the default is the current directory. The interactive options are:
ufsrestore complains about bad option characters.
Read errors result in complaints. If y has been specified, or the user responds y, ufsrestore will attempt to continue.
If the dump extends over more than one tape, ufsrestore asks the user to change tapes. If the x or i function letter has been specified, ufsrestore also asks which volume the user wishes to mount.
There are numerous consistency checks that can be listed by ufsrestore. Most checks are self-explanatory or can ‘never happen’. Common errors are given below.
ufsrestore can get confused when doing incremental restores from dump tapes that were made on active file systems.
A ‘level 0’ dump must be done after a full restore. Because ufsrestore runs in user mode, it has no control over inode allocation. This means that ufsrestore repositions the files, although it does not change their contents. Thus, a full dump must be done to get a new set of directories reflecting the new file positions, so that later incremental dumps will be correct.