=head1 NAME vos_backupsys - Creates a backup volume for several read/write volumes =head1 SYNOPSIS =for html
B S<<< [B<-prefix> >+] >>> S<<< [B<-server> >] >>> S<<< [B<-partition> >] >>> [B<-exclude>] S<<< [B<-xprefix> >+] >>> [B<-dryrun>] S<<< [B<-cell> >] >>> [B<-noauth>] [B<-localauth>] [B<-verbose>] [B<-encrypt>] [B<-noresolve>] S<<< [B<-config> >] >>> [B<-help>] B S<<< [B<-pr> >+] >>> S<<< [B<-s> >] >>> S<<< [B<-pa> >] >>> [B<-ex>] S<<< [B<-x> >+] >>> [B<-d>] S<<< [B<-c> >] >>> [B<-noa>] [B<-l>] [B<-v>] [B<-en>] [B<-nor>] S<<< [B<-co> >] >>> [B<-h>] =for html
=head1 DESCRIPTION The B command clones each indicated read/write volume to create a backup version, placing each clone at the same site as its read/write source version. It assigns each clone the same name as the read/write source, adding a C<.backup> extension. It assigns the volume ID number already allocated for the backup version in the Volume Location Database (VLDB). If a backup version already exists for a given volume, the new clone replaces it. To clone every read/write volume listed in the VLDB, omit all of the command's options. Otherwise, combine the command's options to clone various groups of volumes. The options use one of two basic criteria to select volumes: location (the B<-server> and B<-partition> arguments) or presence in the volume name of one of a set of specified character strings (the B<-prefix>, B<-exclude>, and B<-xprefix> options). To clone only volumes that reside on one file server machine, include the B<-server> argument. To clone only volumes that reside on one partition, combine the B<-server> and B<-partition> arguments. The B<-partition> argument can also be used alone to clone volumes that reside on the indicated partition on every file server machine. These arguments can be combined with those that select volumes based on their names. Combine the B<-prefix>, -exclude, and B<-xprefix> options (with or without the B<-server> and B<-partition> arguments) in the indicated ways to select volumes based on character strings contained in their names: =over 4 =item * To clone every read/write volume at the specified location whose name includes one of a set of specified character strings (for example, begins with C or includes the string C), use the B<-prefix> argument or combine the B<-xprefix> and B<-exclude> options. =item * To clone every read/write volume at the specified location except those whose name includes one of a set of specified character strings, use the B<-xprefix> argument or combine the B<-prefix> and B<-exclude> options. =item * To clone every read/write volume at the specified location whose name includes one of one of a set of specified character strings, except those whose names include one of a different set of specified character strings, combine the B<-prefix> and B<-xprefix> arguments. The command creates a list of all volumes that match the B<-prefix> argument and then removes from the list the volumes that match the B<-xprefix> argument. For effective results, the strings specified by the B<-xprefix> argument must designate a subset of the volumes specified by the B<-prefix> argument. If the B<-exclude> flag is combined with the B<-prefix> and B<-xprefix> arguments, the command creates a list of all volumes that do not match the B<-prefix> argument and then adds to the list any volumes that match the B<-xprefix> argument. As when the B<-exclude> flag is not used, the result is effective only if the strings specified by the B<-xprefix> argument designate a subset of the volumes specified by the B<-prefix> argument. =back The B<-prefix> and B<-xprefix> arguments both accept multiple values, which can be used to define disjoint groups of volumes. Each value can be one of two types: =over 4 =item * A simple character string, which matches volumes whose name begin with the string. All characters are interpreted literally (that is, characters that potentially have special meaning to the command shell, such as the period, have only their literal meaning). =item * A regular expression, which matches volumes whose names contain the expressions. Place a caret (C<^>) at the beginning of the expression, and enclose the entire string in single quotes (C<''>). Explaining regular expressions is outside the scope of this reference page; see the UNIX manual page for regexp(5) or (for a brief introduction) L. As an example, the following expression matches volumes that have the string C anywhere in their names: -prefix '^.*aix' =back To display a list of the volumes to be cloned, without actually cloning them, include the B<-dryrun> flag. To display a statement that summarizes the criteria being used to select volume, include the B<-verbose> flag. This command can be used to clone a single read/write volume; specify its complete name as the B<-prefix> argument. However, it is more efficient to use the B command, which employs a more streamlined technique for finding a single volume. =head1 OPTIONS =over 4 =item B<-prefix> > Specifies one or more simple character strings or regular expressions of any length; a volume whose name includes the string is placed on the set of volumes to be cloned. Include field separators (such as periods) if appropriate. This argument can be combined with any combination of the B<-server>, B<-partition>, B<-exclude>, and B<-xprefix> options. =item B<-server> > Identifies the file server machine where each read/write source volume resides. Provide the machine's IP address or its host name (either fully qualified or using an unambiguous abbreviation). For details, see L. This argument can be combined with any combination of the B<-prefix>, B<-partition>, B<-exclude>, and B<-xprefix> options. =item B<-partition> > Identifies the partition where each read/write source volume resides. Provide the partition's complete name with preceding slash (for example, C) or use one of the three acceptable abbreviated forms. For details, see L. This argument can be combined with any combination of the B<-prefix>, B<-server>, B<-exclude>, and B<-xprefix> options. =item B<-exclude> Reverses the meaning of the B<-prefix> or B<-xprefix> argument. This flag can be combined with any combination of the B<-prefix>, B<-server>, B<-partition>, and B<-xprefix> options. =item B<-xprefix> > Specifies a simple character string or regular expression of any length; a volume whose name includes the string is removed from the set of volumes to be cloned. Include field separators (such as periods) if appropriate. This argument can be combined with any combination of the B<-prefix>, B<-server>, B<-partition>, and B<-exclude> options. =item B<-dryrun> Displays on the standard output stream a list of the volumes to be cloned, without actually cloning them. =include fragments/vos-common.pod =back =head1 OUTPUT The command generates the following messages on the standard output stream to confirm that the operation was successful: done Total volumes backed up: ; failed to backup: If the B<-dryrun> flag is included, a list of the volumes to be backed up precedes the standard confirmation messages. If the B<-verbose> flag is included but not the B<-dryrun> flag, the following messages appear for each volume. The output concludes with the standard confirmation messages. Creating backup volume for on {Recloning backup volume | Creating a new backup clone} . . .done If both the B<-dryrun> and B<-verbose> flags are included, the output begins with a statement summarizing the criteria being used to select the volumes, followed by a list of the volumes and the standard confirmation messages. The format of the criteria summary statement depends on which other options are provided: =over 4 =item * If only the B<-prefix> argument is provided, or the B<-xprefix> and B<-exclude> options are combined: Would have backed up volumes which are prefixed with [or ] . . =item * If only the B<-xprefix> argument is provided, or the B<-prefix> and B<-exclude> options are combined: Would have backed up volumes which are not prefixed with [nor ] . . =item * If the B<-prefix> and B<-xprefix> arguments are combined: Would have backed up volumes which are prefixed with [or ] \ removing those which are prefixed with [or ] . . =item * If the B<-prefix>, B<-xprefix>, and B<-exclude> options are provided: Would have backed up volumes which are not prefixed with [nor ] \ adding those which are prefixed with [or ] . . =back =head1 EXAMPLES The following example creates a backup version of every read/write volume listed in the cell's VLDB whose name begins with the string B. % vos backupsys -prefix user The following example, appropriate in the Example Corporation cell, creates a backup version of every read/write volume on the file server machine C. % vos backupsys -server fs3.example.com The following example, appropriate in the Example Organization cell, creates a backup version of every read/write volume on the file server machine C except those whose name includes the string C. % vos backupsys -server db1.example.org -prefix '^.*temp' The following example creates a backup version of every volume listed in the cell's VLDB, excluding those whose names contain the string C, but including those whose names contain the string C. % vos backupsys -prefix '^.*source' -exclude -xprefix '^.*source\.current' =head1 PRIVILEGE REQUIRED The issuer must be listed in the F file on the machine specified with the B<-server> argument and on each database server machine. If the B<-localauth> flag is included, the issuer must instead be logged on to a server machine as the local superuser C. =head1 SEE ALSO L, L, L UNIX manual page for regexp(5) =head1 COPYRIGHT IBM Corporation 2000. All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.