Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ restore(1m) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                              restore(1m)



        _________________________________________________________________
        restore
        incrementally restore a DG/UX file system
        _________________________________________________________________


        SYNTAX

        /etc/restore key [ filename ... ]


        DESCRIPTION

        Restore reads files and symbolic links dumped with the dump(1m)
        command.  Its actions are controlled by a key argument.  Key is a
        character string composed of one function keyletter and zero or
        more optional keyletters.  Filename is the name of a data file or
        directory specifying the files that are to be restored.  Unless
        the h key is specified (see below), the appearance of a directory
        name refers to the files and (recursively) subdirectories of that
        directory.

        The function keyletters are:

        r    Read the tape and load its contents into the current
             directory.  This keyletter should be used only to restore a
             complete dump tape onto a clear file system or to restore an
             incremental dump tape after a full level zero restore.
             Following is a typical sequence to restore a complete dump:

                  /etc/mkfs /dev/dsk/c27d0s3
                  /etc/mount /dev/dsk/c67d0s3 /mnt
                  cd /mnt
                  restore r

             You can invoke restore again to get an incremental dump in
             on top of this.  Note that restore leaves a file
             restoresymtable in the current directory to pass information
             between incremental passes by restore.  This file should be
             removed when the last incremental tape has been restored.

             To change the size of a file system, use dump(1m) followed
             by a mkfs(1m) and restore.

        R    Request a particular tape of a multi-volume set on which to
             restart a full restoration (see the r key above).  This lets
             you interrupt restore then restart it.

        x    Extract the named files from the tape.  If the named file
             matches a directory whose contents had been written onto the
             tape and the h key is not specified, the directory is



        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                              restore(1m)



             recursively extracted.  The owner, modification time, and
             mode are restored if possible.  If no filename argument is
             given, then the root directory is extracted, which results
             in the entire content of the tape being extracted, unless
             the h key has been specified.

        t    List the names of the specified files if they occur on the
             tape.  If no file argument is given, then the root directory
             is listed, which results in the entire content of the tape
             being listed, unless the h key has been specified.  The t
             key replaces the function of the old dumpdir program.

        i    Interactively restore files from a dump tape.  After reading
             in the directory information from the tape, restore provides
             a shell-like interface that lets you move around the
             directory tree selecting files to be extracted.

             Commands are given below.  When dir or file is an argument,
             the default is the current directory.


             ls [dir] - List the dir directory.  Entries that are
                  directories are appended with a slash (/).  Entries
                  that have been marked for extraction are prepended with
                  an asterisk (*).  If the verbose key is set, each
                  entry's inode number is also listed.

             cd dir - Change the current working directory to dir.

             pwd - Print the full pathname of the current working
                  directory.

             add [file] - Add directory or data file file to the list of
                  files to be extracted.  If a directory is specified, it
                  and all its descendents are added to the extraction
                  list (unless the h key was specified on the command
                  line).  Files that are on the extraction list are
                  prepended with an asterisk when they are listed by ls.

             delete [file] - The current directory or specified argument
                  is deleted from the list of files to be extracted.  If
                  a directory is specified, then it and all its
                  descendents are deleted from the extraction list
                  (unless the h key was specified on the command line).
                  The most expedient way to extract most of the files
                  from a directory is to add the directory to the
                  extraction list and then delete those files that are
                  not needed.

             extract - Extract from the dump tape all the files on the
                  extraction list.  Restore asks you which volume you



        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)





                                                              restore(1m)



                  wish to mount.  The fastest way to extract a few files
                  is to start with the last volume and work toward the
                  first volume.  To extract files, you need to use "add
                  file" to add the file to the list that extract will
                  use.

             verbose - Toggle verbose mode (see the v key).  In verbose
                  mode, the ls command lists the inode numbers of all
                  entries, and restore prints out information about each
                  file as it is extracted.

             help - List a summary of the available commands.

             quit - Exit immediately, even if the extraction list is not
                  empty.

             x - Exit immediately, even if the extraction list is not
                  empty.

        The optional keyletters are:

        b    Use blocking factor factor, which is the number of 1024-byte
             blocks to use per tape record.  The default is 10; the
             maximum is 32.  It must match the blocking factor used to
             dump the tape.  Ideally, this will be the optimal blocking
             factor for the device you're using.  See dump(1m).

        g    Use a memory buffer of size factor * 1024-bytes to hold the
             tape records.  The default is set to the b value; the
             maximum is 2048.  It must be a multiple of the b factor, at
             least as large as the b factor, and may be limited by
             available memory.  Note that increasing this buffer size
             will allow you to stream devices.  We suggest using 512 to
             stream mtj devices.

        v    Enter verbose mode.  Normally restore does its work
             silently.  In verbose mode, restore types the file type and
             name of each file on which it acts.

        f    Use the next argument to restore as the name of the archive
             instead of /dev/rmt/0.  If the next argument is `-', restore
             reads from standard input.  Thus, dump(1m) and restore can
             be used in a pipeline to dump and restore a file system with
             the command

                  dump 0f - /usr | (cd /mnt; restore xf -)

             If you have DG TCP/IP (DG/UX), you can restore from a remote
             device.  For example, restore rf sys:/dev/rmt/0 lets you
             restore the contents from the tape device "0" on the system
             "sys" into the current directory.



        DG/UX 4.00                                                 Page 3
               Licensed material--property of copyright holder(s)





                                                              restore(1m)



        y    Do not not ask whether the restoration should abort, if a
             tape error occurs.  Restore skips over the bad tape block(s)
             and continues.

        m    Extract by inode numbers rather than by filename.  This is
             useful if only a few files are being extracted and you want
             to avoid regenerating the complete pathname to the file.

        h    Extract the actual directory rather than the files that it
             contains.  This prevents hierarchical restoration of
             complete subtrees from the tape.

        Restore and dump support symbolic links.


        DIAGNOSTICS

        A bad key character produces an error message.

        A read error produces a message.  If y has been specified or you
        respond `y', restore attempts to continue restoration.

        If the dump extends over more than one tape, restore asks you to
        change tapes.  If the x or i key has been specified, restore also
        asks which volume you wish to mount.

        Restore performs numerous consistency checks that can produce
        diagnostic messages.  Most messages are self-explanatory or
        rarely occur.  Common error messages are:

        Converting to new file system format
             A dump tape created from the old file system has been
             loaded.  It is automatically converted to the new file
             system format.

        <filename>: not found on tape
             The specified filename was listed in the tape directory but
             was not found on the tape.  This error is caused by tape
             read errors while looking for the file and from using a dump
             tape created on an active file system.

        expected next file <inumber>, got <inumber>
             A file that was not listed in the directory showed up.  This
             error can occur when using a dump tape created on an active
             file system.

        Incremental tape too low
             When doing incremental restore, a tape that was written
             before the previous incremental tape, or that has too low an
             incremental level has been loaded.




        DG/UX 4.00                                                 Page 4
               Licensed material--property of copyright holder(s)





                                                              restore(1m)



        Incremental tape too high
             When doing incremental restore, a tape that does not begin
             its coverage where the previous incremental tape left off,
             or that has too high an incremental level has been loaded.

        Tape read error while restoring <filename>
        Tape read error while skipping over inode <inumber>
        Tape read error while trying to resynchronize
             A tape read error has occurred.  If a filename is specified,
             then its contents are probably partially wrong.  If an inode
             is being skipped or the tape is trying to resynchronize,
             then no extracted files have been corrupted, though files
             may not be found on the tape.

        resync restore, skipped <num> blocks
             After a tape read error, restore may have to resynchronize
             itself.  This message lists the number of blocks that were
             skipped over.

        invalid blocking factor, <num>
             See explanation for b option.

        invalid memory buffer specified, <num>
             See explanation for g option.


        FILES

        /dev/rmt/0      Default tape drive for restoration tapes
        /tmp/rstdir*    File containing directories on the tape
        /tmp/rstmode*   File containing owner, mode, and time stamps for
                        directories being restored
        ./restoresymtable       File containing information passed
                        between incremental restorations


        SEE ALSO

        dump(1m), mkfs(1m), mount(1m).


        BUGS

        Restore may give incorrect results when doing incremental
        restores from dump tapes that were made on active file systems.

        A level zero dump must be done after a full restore.  Because
        restore runs in user code, it has no control over inode
        allocation; thus a full dump must be done to get a new set of
        directories reflecting the new inode numbering, even though the
        contents of the files is unchanged.



        DG/UX 4.00                                                 Page 5
               Licensed material--property of copyright holder(s)





                                                              restore(1m)



        Restore complains about socket files (file mode 0140000); it
        should ignore these files.




















































        DG/UX 4.00                                                 Page 6
               Licensed material--property of copyright holder(s)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026