Purpose
Defines a volume entry in a volume set
Synopsis
backup addvolentry -name <volume set name> -server <machine name> -partition <partition name> -volumes <volume name (regular expression)> [-localauth] [-cell <cell name>] [-help] backup addvole -n <volume set name> -s <machine name> -p <partition name> -v <volume name (regular expression)> [-l] [-c <cell name>] [-h]
Description
The backup addvolentry command adds a volume entry definition to the existing volume set named by the -name argument. A volume entry definition can match one or more volumes, depending on the combination of the -server, -partition, and -volumes arguments.
For the -server and -partition arguments, provide either
For the -volumes argument, specify a combination of alphanumeric characters and one or more metacharacters to wildcard part or all of the volume name. The Options section lists the acceptable metacharacters.
Cautions
It is best to issue this command in interactive mode. If issuing it at the shell prompt, enclose any strings containing metacharacters in double quotes, or escape the metacharacters with other delimiters, to prevent the shell from interpreting them. Adding volume entries to a temporary volume set is possible only within the interactive session in which the volume set was created.
Options
Perhaps the most common metacharacter expression is the period followed by an asterisk (.*). This expression matches any string of any length, because the period matches any character and the asterisk means any number of that character. As mentioned, it is the only acceptable metacharacter expression for the -server and -partition arguments. In a volume definition it can stand alone (in which case it matches every volume listed in the VLDB), or can combine with regular characters. The following example matches any volume name that begins with the string user and ends with backup:
user.*backup
Examples
The following command adds a volume entry to the volume set called sys. The entry matches all volumes on any machine or partition whose names begin with the string sun4x_56 followed by a period:
backup> addvolentry sys .* .* sun4x_56\..*
The following command adds a volume entry to the volume set called fs2, to match all volumes on the /vicepb partition of file server machine fs2.abc.com. Because it is issued at the shell prompt, double quotes surround the metacharacters in the -volumes argument. (The command is shown here on two lines only for legibility reasons.)
% backup addvolentry -name fs2 -server fs2.abc.com \ -partition /vicepb -volumes ".*"
The chapter in the IBM AFS Administration Guide about configuring the AFS Backup System presents additional examples as well as advice on grouping volumes.
Privilege Required
The issuer must be listed in the /usr/afs/etc/UserList file on every machine where the Backup Server is running, or must be logged onto a server machine as the local superuser root if the -localauth flag is included.
Related Information