Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

wbak(1)

rwmt(1)

RBAK(1)                         Domain/OS SysV                         RBAK(1)




NAME
     rbak - restore or index a magnetic media backup file

SYNOPSIS
     rbak {-f fileno|-fid id} [-dev | m[unit] | f | ct]
             [-int|-index] [-sla|-nsla] [-anys] [-reo] [-pr pn]
             [-cr|-r|-ms|-md] [-force] [-du] [-l|-ld|-lf|-ll]
             [-reten|-nreten] [-rewind] [-dacl|-sacl] [-unl]
             [-from filename] [-pdt] [-stdin] {{pn|-all}
             [-rem host:dev] [-as disk_pn]}...

DESCRIPTION
     rbak restores objects from the backup input media written by wbak
     (write_backup).  The backup input media can be one of magnetic media,
     file or standard input.

     Use wbak and rbak to back up disks and to transfer information between
     separate Domain installations. (Use the rwmt (read_write_magtape) command
     to transfer information to and from non-Domain installations.)

     rbak operates in either index or interchange mode.  To restore objects to
     disk, use interchange mode (-int).  To list object names on standard
     output, without restoring any information to disk, use index mode
     (-index).

     pn - pathname (optional)
                    Specify name of the object to be indexed or restored to
                    disk.  This may be a directory, file, or link.  If the
                    object is being restored, the new disk object has the same
                    name.  If you wish the disk file to be saved under a
                    different name, use -as (below).  Multiple pathnames are
                    permitted; however, wildcarding is not supported.

                    Default if omitted:  must use -all

OPTIONS
Backup File Identifiers
     One of the following options is required.


     -f file_no     Reads the back up file with the file number specified.
                    You assigned this number with wbak.

     -f cur         Begins reading at current position on the back up medium.

     -fid file_id   Reads the back up filename specified.  You assigned this
                    name using wbak.

     -int (default) Selects interchange mode.  Backup files are restored to
                    disk.

     -index         Selects index mode.  Backup filenames are listed on
                    standard output; no information is restored to disk.


Catalog Control
     -all           Restores or indexes all the objects in the back up file
                    specified.  This option is required if you do not use the
                    pn argument to indicate a particular object to be indexed
                    or restored.
     -as disk_pn    Restores the object specified and assign a different disk
                    pathname disk_pn.  This option is valid only when used
                    with the pn argument on the rbak command line.

|                   NOTE:  If the object is a file and the disk_pn is a
|                          directory, the directory and its contents will
|                          be overwritten with the file from tape.

     -cr (default)  Specifies create mode.  rbak does not restore objects if
                    their names already exist on disk.  It prints an error
                    message if a name exists on both disk and backup media,
                    and continues.

     -r             Specifies replace mode.  rbak deletes the existing disk
                    object, and replaces it with the object read from backup
                    media.

     -force         Forces object deletion if you have owner rights.

     -du            Deletes when unlocked.  If the object to be deleted is
                    locked when rbak is invoked, the delete operation is
                    performed when the object is unlocked.

     -ms            Specifies merge-source mode.  Similar to replace mode.  If
                    an object already exists on disk, rbak deletes the disk
                    version and restores the backup media version (the
                    source).  However, if the object is a directory, rbak
                    merges the back up media directory's contents with the
|                   disk directory.  If the object is a file and the
|                   destination is a directory, the entire contents of
|                   the directory will be overwritten.

     -pr pn...      Preserves specified objects on the disk. Multiple
                    pathnames and wildcarding are permitted.  If the objects
                    exist on disk, they are not overwritten by backup media
                    versions.  This option must be used with the -ms option.

     -md            Specifies merge-destination mode.  Similar to create mode.
                    If an object already exists on disk (the destination) rbak
                    does not restore the backup media version, and retains the
                    disk version.  However,  if the object is a directory rbak
                    merges the backup media directory's contents with the disk
                    directory.


Label Control
     -sla (default) Displays the backup media file label on standard output.

     -nsla          Does not display the backup media file label.

Listing Control
     You may include the -l option, or any combination of -ld, -lf, and -ll.

     -l             Writes all the file, directory, and link names to standard
                    output.

     -ld            Writes all directory names to standard output.

     -lf            Writes all filenames to standard output.

     -ll            Writes all linknames to standard output.


Backup Device Control
     -anys          Forces rbak to accept any section of the backup file. When
                    a backup file spans multiple backup media volumes, rbak
                    normally begins with the backup media volume containing
                    the backup file's first section, and proceeds to the
                    backup media volume containing the second section, and so
                    on.  If you know which backup media volume contains the
                    object you want to restore or index, use this option.
                    This lets rbak start at any section of the backup file.

     -reo           Forces previous volume to be reopened, and suppress
                    reading of backup media volume label.  Use only when
                    backup media has not been repositioned since the last wbak
                    or rbak.

     -rem[ote] <host>:<dev>
                    Allows the reading of wbak-format tapes on remote devices.
                    host must be a valid Internet host name that is listed in
                    /etc/hosts such that getservbyname (getservent(3N)) would
                    return successfully if the host is available.  The host
                    must be running inetd(8), which must be able to accept an
                    rexec(3) request to start /etc/rmt.  dev is the name of
                    the special file describing the device.

                    This option can only be used with magtapes and to non-
                    Apollo systems.  Domain/OS does not allow remote access to
                    devices.

     -dev d[unit]   Specifies device type and unit number.  d must be either m
                    (for reel-to-reel magnetic tape, ct (for cartridge tape),
                    or f (for floppy), depending on which drive is being used.
                    unit is an integer (0-3).  Both are required for
                    reel-to-reel tapes (that is, -dev m2).  A unit number is
                    not required for floppy disks and cartridge tapes (that
                    is, -dev f).  If this option is omitted, rbak assumes
                    device m0.

                    Note:     Floppy disk support for this command is limited.
                              In particular, error detection during reads and
                              writes is poor.  Do not use this command with
                              floppy disks when the data being placed on the
                              floppy disks is critical and unrecoverable.

     -from filename Reads the backup input from a file written by wbak using
                    the -to option. filename specifies the pathname of the
                    file.

     -stdin         Specifies the backup input media to be standard input.
                    Used along with I/O redirection, this option is useful for
                    reading files from foreign file systems.

     -reten         Retensions the cartridge tape (unwind to the end, then
                    rewind).  This can be helpful if you encounter cartridge
                    tape reading errors.  Retensioning requires about 1.5
                    minutes to complete.

     -nreten (default)
                    Do not retension the cartridge tape.

     -unload        Unload the tape at the end of the backup session.  This
                    option is valid for reel-to-reel magnetic tapes only.

     -rewind        Rewind the tape after reading or indexing.  If this option
                    is omitted, the tape is left positioned to the next tape
                    file.


ACL Control
     -dacl (default)
                    Assigns the destination directory's default ACL to the
                    object being restored.

     -sacl          Retains the restored object's original ACL. This is
                    subject to the limitations imposed by the security model
                    selected by the system administrator. If the user is not
                    privileged and is not the owner of the file, then setuid
                    bit is masked off. If the user is not privileged, and is
                    not a member of the group of the file, then the setgid bit
                    is masked off.

                    If the user is not privileged, and is not a member of the
                    organization of the file, then the setoid bit is masked
                    off. If the file is stamped as protected subsystem data or
                    a protected subsystem manager, and the user is not
                    privileged, then the protected subsystem stamps are lost.

     -pdt           Preserves the object's original date-time modified and
                    date-time used.

EXAMPLES
     $ rbak -f 1 fred/soup

     Read fred/soup in backup file 1 and restore it to disk.  fred/soup may be
     a directory, file, or link.


     $ rbak -f 1 fred/soup -as //node5/noodle

     Restore fred/soup and place it in noodle on node5.


     $ rbak -dev ct -rewind

     Rewind the cartridge tape prior to removing it from the tape unit.


     $ rbak  src -from /fred/bck_out.file

     Restore the directory src to disk. Read the backup input from the file
     /fred/bck_out.file, that should be written by wbak using the -stdout or
     -from option.

SEE ALSO
     wbak(1), rwmt(1)

     Updated 1/94

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