VOS_BACKUPSYS(1) | AFS Command Reference | VOS_BACKUPSYS(1) |
vos_backupsys - Creates a backup volume for several read/write volumes
vos backupsys
[-prefix <common prefix on volume(s)>+]
[-server <machine name>]
[-partition <partition name>]
[-exclude]
[-xprefix <negative prefix on volume(s)>+]
[-dryrun] [-cell <cell name>]
[-noauth] [-localauth]
[-verbose] [-encrypt] [-noresolve]
[-config <config directory>]
[-help]
vos backups
[-pr <common prefix on volume(s)>+]
[-s <machine name>]
[-pa <partition name>]
[-ex]
[-x <negative prefix on volume(s)>+]
[-d]
[-c <cell name>] [-noa] [-l]
[-v]
[-en] [-nor]
[-co <config directory>]
[-h]
The vos backupsys 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 ".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 -server and -partition arguments) or presence in the volume name of one of a set of specified character strings (the -prefix, -exclude, and -xprefix options).
To clone only volumes that reside on one file server machine, include the -server argument. To clone only volumes that reside on one partition, combine the -server and -partition arguments. The -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 -prefix, -exclude, and -xprefix options (with or without the -server and -partition arguments) in the indicated ways to select volumes based on character strings contained in their names:
If the -exclude flag is combined with the -prefix and -xprefix arguments, the command creates a list of all volumes that do not match the -prefix argument and then adds to the list any volumes that match the -xprefix argument. As when the -exclude flag is not used, the result is effective only if the strings specified by the -xprefix argument designate a subset of the volumes specified by the -prefix argument.
The -prefix and -xprefix arguments both accept multiple values, which can be used to define disjoint groups of volumes. Each value can be one of two types:
-prefix '^.*aix'
To display a list of the volumes to be cloned, without actually cloning them, include the -dryrun flag. To display a statement that summarizes the criteria being used to select volume, include the -verbose flag.
This command can be used to clone a single read/write volume; specify its complete name as the -prefix argument. However, it is more efficient to use the vos backup command, which employs a more streamlined technique for finding a single volume.
This argument can be combined with any combination of the -prefix, -partition, -exclude, and -xprefix options.
This argument can be combined with any combination of the -prefix, -server, -exclude, and -xprefix options.
The command generates the following messages on the standard output stream to confirm that the operation was successful:
done Total volumes backed up: <number_cloned>; failed to backup: <failures>
If the -dryrun flag is included, a list of the volumes to be backed up precedes the standard confirmation messages.
If the -verbose flag is included but not the -dryrun flag, the following messages appear for each volume. The output concludes with the standard confirmation messages.
Creating backup volume for <volume_name> on <date/time> {Recloning backup volume | Creating a new backup clone} <backup_volumeID> . . .done
If both the -dryrun and -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:
Would have backed up volumes which are prefixed with <string> [or <string>] . .
Would have backed up volumes which are not prefixed with <string> [nor <string>] . .
Would have backed up volumes which are prefixed with <string> [or <string>] \ removing those which are prefixed with <x_string> [or <x_string>] . .
Would have backed up volumes which are not prefixed with <string> [nor <string>] \ adding those which are prefixed with <x_string> [or <x_string>] . .
The following example creates a backup version of every read/write volume listed in the cell's VLDB whose name begins with the string user.
% 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 "fs3.example.com".
% 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 "db1.example.org" except those whose name includes the string "temp".
% 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 "source", but including those whose names contain the string "source.current".
% vos backupsys -prefix '^.*source' -exclude -xprefix '^.*source\.current'
The issuer must be listed in the /etc/openafs/server/UserList file on the machine specified with the -server argument and on each database server machine. If the -localauth flag is included, the issuer must instead be logged on to a server machine as the local superuser "root".
backup_addvolentry(8), vos(1), vos_backup(1)
UNIX manual page for regexp(5)
IBM Corporation 2000. <http://www.ibm.com/> 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.
2021-01-14 | OpenAFS |