VOS_DUMP(1) | AFS Command Reference | VOS_DUMP(1) |
vos_dump - Converts a volume into ASCII format and writes it to a file
vos dump
-id <volume name or ID>
[-time <dump from time>]
[-file <dump file>]
[-server <server>]
[-partition <partition>] [-clone]
[-omitdirs]
[-cell <cell name>] [-noauth]
[-localauth]
[-verbose] [-encrypt] [-noresolve]
[-config <config directory>]
[-help]
vos du
-i <volume name or ID>
[-t <dump from time>]
[-f <dump file>]
[-s <server>]
[-p <partition>]
[-cl] [-o] [-ce <cell name>]
[-noa] [-l]
[-v] [-e] [-nor]
[-co <config directory>]
[-h]
The vos dump command converts the contents of the indicated volume, which can be read/write, read-only or backup, into ASCII format. The Volume Server writes the converted contents to the file named by the -file argument, or to the standard output stream. In the latter case, the output can be directed to a named pipe, which enables interoperation with third-party backup utilities.
To dump the complete contents of a volume (create a full dump), omit the -time argument or specify the value 0 (zero) for it. To create an incremental dump, which includes only the files and directories in the volume that have modification timestamps later than a certain time, specify a date and time as the value for the -time argument.
By default, the vos command interpreter consults the Volume Location Database (VLDB) to learn the volume's location, so the -server and -partition arguments are not required. If the -id argument identifies a read-only volume that resides at multiple sites, the command dumps the version from just one of them (normally, the one listed first in the volume's VLDB entry as reported by the vos examine or vos listvldb command). To dump the read-only volume from a particular site, use the -server and -partition arguments to specify the site. To bypass the VLDB lookup entirely, provide a volume ID number (rather than a volume name) as the value for the -id argument, together with the -server and -partition arguments. This makes it possible to dump a volume for which there is no VLDB entry.
During the dump operation, the volume is inaccessible both to Cache Managers and to other volume operations. Dumping a volume does not otherwise affect its status on the partition or its VLDB entry.
To restore a dumped volume back into AFS, use the vos restore command.
Support for incremental dumps is provided to facilitate interoperation with third-party backup utilities. The vos dump command does not provide any of the administrative facilities of an actual backup system, so the administrator must keep manual records of dump times and the relationship between full and incremental dumps of a volume. For a volume's contents to be consistent after restoration of incremental dumps, there must be no gap between the time at which a prior dump of the volume was created and the value of the -time argument to the vos dump command that creates the incremental dump. More specifically, for a read/write volume, the -time argument must specify the time that the prior dump was performed, and for a read-only or backup volume it must specify the time that the volume was last released (using the vos release command) or cloned (using the vos backup or vos backupsys command) prior to dumping it. The parent dump can be either a full dump or another incremental dump.
The following command writes a full dump of the volume "user.terry" to the file /afs/example.com/common/dumps/terry.dump.
% vos dump -id user.terry -time 0 -file /afs/example.com/common/dumps/terry.dump
The following command writes an incremental dump of the volume "user.smith" to the file "smith.990131.dump" in the current working directory. Only those files in the volume with modification time stamps later than 6:00 p.m. on 31 January 1999 are included in the dump.
% vos dump -id user.smith -time "01/31/1999 18:00" -file smith.990131.dump
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".
If the -file argument is included, the issuer must also have permission to insert and write in the directory that houses the file.
restorevol(1), vos(1), vos_examine(1), vos_listvldb(1), vos_restore(1)
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-27 | OpenAFS |