Download PDF Vol. I

Transcript
BACKUP
/PROTECTION
/PROTECTION
Output Save-Set Qualifier
When you create a save set on disk, this qualifier defines the protection to be
applied to an output save set. When you create a save set on magnetic tape, this
qualifier defines the protection to be applied to the magnetic tape volume. (All
save sets created subsequently on the tape will receive this same protection until
the tape is initialized.)
Format
input-specifier output-save-set-spec/PROTECTION[=(code)]
Description
Because the file system treats a BACKUP save set as a single file, it is crucial
that you protect save sets adequately. If you do not specify adequate protection,
anyone who has access to a save set can access any file in the save set.
The protection code indicates the type of access (read, write, execute, and delete)
available to the four categories of users (system, owner, group, and world). For
more information about specifying protection codes, refer to the OpenVMS User’s
Manual.
If the save set is written to either a Files–11 disk or a sequential disk and
/PROTECTION is not specified, BACKUP applies the process default protection to
the save set. If /PROTECTION is specified, any protection categories not specified
default to your default process protection.
Protection information is written to the volume header record of a magnetic tape,
and applies to all save sets stored on the tape. If you specify /PROTECTION,
any protection categories that you do not specify default to your default process
protection.
To initialize a magnetic tape with the correct protection, specify the output saveset qualifier /REWIND with the /PROTECTION qualifier. If you do not specify
/REWIND with /PROTECTION, the protection information, if any, in the volume
header record is not changed. However, specifying /PROTECTION without
/REWIND ensures that continuation volumes receive the correct protection.
If the save set is written to magnetic tape and /PROTECTION is not specified,
BACKUP applies no protection to the tape.
In order to initialize a magnetic tape volume that was previously initialized with
the /PROTECTION qualifier, you must own the volume (your UIC matches the
UIC of the volume) or have the VOLPRO privilege.
Examples
1.
$ BACKUP
_From: [CLEAVER...]
_To: MFA2:ACCOUNTS.BCK/BY_OWNER=[301,310]/REWIND/LABEL=BANK01_$ /PROTECTION=(S:RWE,O:RWED,G:RE,W)
This command saves the directory tree [CLEAVER...] to a save set named
ACCOUNTS.BCK on the magnetic tape labeled BANK01. The output save-set
qualifier /REWIND directs BACKUP to rewind the tape and initialize it before
performing the save operation. The output save-set qualifier /BY_OWNER
Backup Utility 7–75