1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry id="vos_dump1">
4 <refentrytitle>vos dump</refentrytitle>
5 <manvolnum>1</manvolnum>
8 <refname>vos dump</refname>
9 <refpurpose>Converts a volume into ASCII format and writes it to a file</refpurpose>
12 <title>Synopsis</title>
13 <para><emphasis role="bold">vos dump</emphasis> <emphasis role="bold">-id</emphasis> <<emphasis>volume name or ID</emphasis>> [<emphasis role="bold">-time</emphasis> <<emphasis>dump from time</emphasis>>]
14 [<emphasis role="bold">-file</emphasis> <<emphasis>dump file</emphasis>>] [<emphasis role="bold">-server</emphasis> <<emphasis>server</emphasis>>]
15 [<emphasis role="bold">-partition</emphasis> <<emphasis>partition</emphasis>>] [<emphasis role="bold">-cell</emphasis> <<emphasis>cell name</emphasis>>]
16 [<emphasis role="bold">-noauth</emphasis>] [<emphasis role="bold">-localauth</emphasis>] [<emphasis role="bold">-verbose</emphasis>] [<emphasis role="bold">-help</emphasis>]</para>
18 <para><emphasis role="bold">vos du</emphasis> <emphasis role="bold">-i</emphasis> <<emphasis>volume name or ID</emphasis>> [<emphasis role="bold">-t</emphasis> <<emphasis>dump from time</emphasis>>]
19 [<emphasis role="bold">-f</emphasis> <<emphasis>dump file</emphasis>>] [<emphasis role="bold">-s</emphasis> <<emphasis>server</emphasis>>] [<emphasis role="bold">-p</emphasis> <<emphasis>partition</emphasis>>]
20 [<emphasis role="bold">-c</emphasis> <<emphasis>cell name</emphasis>>] [<emphasis role="bold">-n</emphasis>] [<emphasis role="bold">-l</emphasis>] [<emphasis role="bold">-v</emphasis>] [<emphasis role="bold">-h</emphasis>]</para>
24 <title>Description</title>
25 <para>The <emphasis role="bold">vos dump</emphasis> command converts the contents of the indicated volume,
26 which can be read/write, read-only or backup, into ASCII format. The
27 Volume Server writes the converted contents to the file named by the
28 <emphasis role="bold">-file</emphasis> argument, or to the standard output stream. In the latter case,
29 the output can be directed to a named pipe, which enables interoperation
30 with third-party backup utilities.</para>
32 <para>To dump the complete contents of a volume (create a <emphasis>full dump</emphasis>), omit
33 the <emphasis role="bold">-time</emphasis> argument or specify the value <computeroutput>0</computeroutput> (zero) for it. To create
34 an <emphasis>incremental dump</emphasis>, which includes only the files and directories in
35 the volume that have modification timestamps later than a certain time,
36 specify a date and time as the value for the <emphasis role="bold">-time</emphasis> argument.</para>
38 <para>By default, the vos command interpreter consults the Volume Location
39 Database (VLDB) to learn the volume's location, so the <emphasis role="bold">-server</emphasis> and
40 <emphasis role="bold">-partition</emphasis> arguments are not required. If the <emphasis role="bold">-id</emphasis> argument
41 identifies a read-only volume that resides at multiple sites, the command
42 dumps the version from just one of them (normally, the one listed first in
43 the volume's VLDB entry as reported by the <emphasis role="bold">vos examine</emphasis> or <emphasis role="bold">vos
44 listvldb</emphasis> command). To dump the read-only volume from a particular site,
45 use the <emphasis role="bold">-server</emphasis> and <emphasis role="bold">-partition</emphasis> arguments to specify the site. To
46 bypass the VLDB lookup entirely, provide a volume ID number (rather than a
47 volume name) as the value for the <emphasis role="bold">-id</emphasis> argument, together with the
48 <emphasis role="bold">-server</emphasis> and <emphasis role="bold">-partition</emphasis> arguments. This makes it possible to dump a
49 volume for which there is no VLDB entry.</para>
51 <para>During the dump operation, the volume is inaccessible both to Cache
52 Managers and to other volume operations. Dumping a volume does not
53 otherwise affect its status on the partition or its VLDB entry.</para>
55 <para>To restore a dumped volume back into AFS, use the <emphasis role="bold">vos restore</emphasis> command.</para>
59 <title>Cautions</title>
60 <para>Support for incremental dumps is provided to facilitate interoperation
61 with third-party backup utilities. The <emphasis role="bold">vos dump</emphasis> command does not
62 provide any of the administrative facilities of an actual backup system,
63 so the administrator must keep manual records of dump times and the
64 relationship between full and incremental dumps of a volume. For a
65 volume's contents to be consistent after restoration of incremental dumps,
66 there must be no gap between the time at which a prior dump of the volume
67 was created and the value of the <emphasis role="bold">-time</emphasis> argument to the <emphasis role="bold">vos dump</emphasis>
68 command that creates the incremental dump. More specifically, for a
69 read/write volume, the <emphasis role="bold">-time</emphasis> argument must specify the time that the
70 prior dump was performed, and for a read-only or backup volume it must
71 specify the time that the volume was last released (using the <emphasis role="bold">vos
72 release</emphasis> command) or cloned (using the <emphasis role="bold">vos backup</emphasis> or <emphasis role="bold">vos backupsys</emphasis>
73 command) prior to dumping it. The parent dump can be either a full dump or
74 another incremental dump.</para>
78 <title>Options</title>
81 <term><emphasis role="bold">-id</emphasis> <<emphasis>volume name or ID</emphasis>></term>
83 <para>Specifies either the complete name or volume ID number of the read/write,
84 read-only, or backup volume to dump.</para>
89 <term><emphasis role="bold">-time</emphasis> <<emphasis>dump from time</emphasis>></term>
91 <para>Specifies whether the dump is full or incremental. Omit this argument to
92 create a full dump, or provide one of three acceptable values:</para>
96 <para>The value <computeroutput>0</computeroutput> (zero) to create a full dump.</para>
100 <para>A date in the format <emphasis>mm</emphasis><emphasis role="bold">/</emphasis><emphasis>dd</emphasis><emphasis role="bold">/</emphasis><emphasis>yyyy</emphasis> (month, day and year) to
101 create an incremental dump that includes only files and directories with
102 modification timestamps later than midnight (12:00 a.m.) on the indicated
103 date. Valid values for the year range from <computeroutput>1970</computeroutput> to <computeroutput>2037</computeroutput>; higher
104 values are not valid because the latest possible date in the standard UNIX
105 representation is in 2038. The command interpreter automatically reduces
106 later dates to the maximum value. An example is <computeroutput>01/13/1999</computeroutput>.</para>
110 <para>A date and time in the format <emphasis role="bold">"</emphasis><emphasis>mm</emphasis><emphasis role="bold">/</emphasis><emphasis>dd</emphasis><emphasis role="bold">/</emphasis><emphasis>yyyy</emphasis>
111 <emphasis>hh</emphasis><emphasis role="bold">:</emphasis><emphasis>MM</emphasis><emphasis role="bold">"</emphasis> to create an incremental dump that includes only files
112 and directories with modification timestamps later than the specified date
113 and time. The date format is the same as for a date alone. Express the
114 time as hours and minutes (<emphasis>hh</emphasis>:<emphasis>MM</emphasis>) in 24-hour format (for example,
115 <emphasis role="bold">20:30</emphasis> is 8:30 p.m.). Surround the entire expression with double quotes
116 (<computeroutput>""</computeroutput>) because it contains a space. An example is <computeroutput>"01/13/1999 22:30"</computeroutput>.</para>
123 <term><emphasis role="bold">-file</emphasis> <<emphasis>dump file</emphasis>></term>
125 <para>Specifies the pathname of the file to which to write the dump. The file
126 can be in AFS, but not in the volume being dumped. A partial pathname is
127 interpreted relative to the current working directory. If this argument is
128 omitted, the dump is directed to the standard output stream.</para>
133 <term><emphasis role="bold">-server</emphasis> <<emphasis>server name</emphasis>></term>
135 <para>Specifies the file server machine on which the volume resides. Provide
136 the <emphasis role="bold">-partition</emphasis> argument along with this one.</para>
141 <term><emphasis role="bold">-partition</emphasis> <<emphasis>partition name</emphasis>></term>
143 <para>Specifies the partition on which the volume resides. Provide the
144 <emphasis role="bold">-server</emphasis> argument along with this one.</para>
149 <term><emphasis role="bold">-cell</emphasis> <<emphasis>cell name</emphasis></term>
151 <para>Names the cell in which to run the command. Do not combine this argument
152 with the <emphasis role="bold">-localauth</emphasis> flag. For more details, see <link linkend="vos1">vos(1)</link>.</para>
157 <term><emphasis role="bold">-noauth</emphasis></term>
159 <para>Assigns the unprivileged identity anonymous to the issuer. Do not combine
160 this flag with the <emphasis role="bold">-localauth</emphasis> flag. For more details, see <link linkend="vos1">vos(1)</link>.</para>
165 <term><emphasis role="bold">-localauth</emphasis></term>
167 <para>Constructs a server ticket using a key from the local
168 <replaceable>/usr/afs/etc/KeyFile</replaceable> file. The <emphasis role="bold">vos</emphasis> command interpreter presents it
169 to the Volume Server and Volume Location Server during mutual
170 authentication. Do not combine this flag with the <emphasis role="bold">-cell</emphasis> argument or
171 <emphasis role="bold">-noauth</emphasis> flag. For more details, see <link linkend="vos1">vos(1)</link>.</para>
176 <term><emphasis role="bold">-verbose</emphasis></term>
178 <para>Produces on the standard output stream a detailed trace of the command's
179 execution. If this argument is omitted, only warnings and error messages
185 <term><emphasis role="bold">-help</emphasis></term>
187 <para>Prints the online help for this command. All other valid options are
195 <title>Examples</title>
196 <para>The following command writes a full dump of the volume <computeroutput>user.terry</computeroutput> to
197 the file <replaceable>/afs/abc.com/common/dumps/terry.dump</replaceable>.</para>
200 % vos dump -id user.terry -time 0 -file /afs/abc.com/common/dumps/terry.dump
203 <para>The following command writes an incremental dump of the volume
204 <computeroutput>user.smith</computeroutput> to the file <computeroutput>smith.990131.dump</computeroutput> in the current working
205 directory. Only those files in the volume with modification time stamps
206 later than 6:00 p.m. on 31 January 1999 are included in the dump.</para>
209 % vos dump -id user.smith -time "01/31/1999 18:00" -file smith.990131.dump
214 <title>Privilege Required</title>
215 <para>The issuer must be listed in the <replaceable>/usr/afs/etc/UserList</replaceable> file on the
216 machine specified with the <emphasis role="bold">-server</emphasis> argument and on each database server
217 machine. If the <emphasis role="bold">-localauth</emphasis> flag is included, the issuer must instead be
218 logged on to a server machine as the local superuser <computeroutput>root</computeroutput>.</para>
220 <para>If the <emphasis role="bold">-file</emphasis> argument is included, the issuer must also have permission
221 to insert and write in the directory that houses the file.</para>
225 <title>See Also</title>
226 <para><link linkend="vos1">vos(1)</link>,
227 <link linkend="vos_examine1">vos_examine(1)</link>,
228 <link linkend="vos_listvldb1">vos_listvldb(1)</link>,
229 <link linkend="vos_restore1">vos_restore(1)</link></para>
233 <title>Copyright</title>
234 <para>IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.</para>
236 <para>This documentation is covered by the IBM Public License Version 1.0. It was
237 converted from HTML to POD by software written by Chas Williams and Russ
238 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.</para>