doc: state klog.krb is obsolete
[openafs.git] / doc / man-pages / pod1 / vos_dump.pod.in
1 =head1 NAME
2
3 vos_dump - Converts a volume into ASCII format and writes it to a file
4
5 =head1 SYNOPSIS
6
7 =for html
8 <div class="synopsis">
9
10 B<vos dump> S<<< B<-id> <I<volume name or ID>> >>>
11     S<<< [B<-time> <I<dump from time>>] >>>
12     S<<< [B<-file> <I<dump file>>] >>> S<<< [B<-server> <I<server>>] >>>
13     S<<< [B<-partition> <I<partition>>] >>> [B<-clone>] [B<-omitdirs>]
14     S<<< [B<-cell> <I<cell name>>] >>> [B<-noauth>] [B<-localauth>]
15     [B<-verbose>] [B<-encrypt>] [B<-noresolve>] [B<-help>]
16
17 B<vos du> S<<< B<-i> <I<volume name or ID>> >>>
18     S<<< [B<-t> <I<dump from time>>] >>>
19     S<<< [B<-f> <I<dump file>>] >>> S<<< [B<-s> <I<server>>] >>>
20     S<<< [B<-p> <I<partition>>] >>>
21     [B<-cl>] [B<-o>] S<<< [B<-ce> <I<cell name>>] >>> [B<-noa>] [B<-l>]
22     [B<-v>] [B<-e>] [B<-nor>] [B<-h>]
23
24 =for html
25 </div>
26
27 =head1 DESCRIPTION
28
29 The B<vos dump> command converts the contents of the indicated volume,
30 which can be read/write, read-only or backup, into ASCII format. The
31 Volume Server writes the converted contents to the file named by the
32 B<-file> argument, or to the standard output stream. In the latter case,
33 the output can be directed to a named pipe, which enables interoperation
34 with third-party backup utilities.
35
36 To dump the complete contents of a volume (create a I<full dump>), omit
37 the B<-time> argument or specify the value C<0> (zero) for it. To create
38 an I<incremental dump>, which includes only the files and directories in
39 the volume that have modification timestamps later than a certain time,
40 specify a date and time as the value for the B<-time> argument.
41
42 By default, the vos command interpreter consults the Volume Location
43 Database (VLDB) to learn the volume's location, so the B<-server> and
44 B<-partition> arguments are not required. If the B<-id> argument
45 identifies a read-only volume that resides at multiple sites, the command
46 dumps the version from just one of them (normally, the one listed first in
47 the volume's VLDB entry as reported by the B<vos examine> or B<vos
48 listvldb> command). To dump the read-only volume from a particular site,
49 use the B<-server> and B<-partition> arguments to specify the site. To
50 bypass the VLDB lookup entirely, provide a volume ID number (rather than a
51 volume name) as the value for the B<-id> argument, together with the
52 B<-server> and B<-partition> arguments. This makes it possible to dump a
53 volume for which there is no VLDB entry.
54
55 During the dump operation, the volume is inaccessible both to Cache
56 Managers and to other volume operations. Dumping a volume does not
57 otherwise affect its status on the partition or its VLDB entry.
58
59 To restore a dumped volume back into AFS, use the B<vos restore> command.
60
61 =head1 CAUTIONS
62
63 Support for incremental dumps is provided to facilitate interoperation
64 with third-party backup utilities. The B<vos dump> command does not
65 provide any of the administrative facilities of an actual backup system,
66 so the administrator must keep manual records of dump times and the
67 relationship between full and incremental dumps of a volume. For a
68 volume's contents to be consistent after restoration of incremental dumps,
69 there must be no gap between the time at which a prior dump of the volume
70 was created and the value of the B<-time> argument to the B<vos dump>
71 command that creates the incremental dump. More specifically, for a
72 read/write volume, the B<-time> argument must specify the time that the
73 prior dump was performed, and for a read-only or backup volume it must
74 specify the time that the volume was last released (using the B<vos
75 release> command) or cloned (using the B<vos backup> or B<vos backupsys>
76 command) prior to dumping it. The parent dump can be either a full dump or
77 another incremental dump.
78
79 =head1 OPTIONS
80
81 =over 4
82
83 =item B<-id> <I<volume name or ID>>
84
85 Specifies either the complete name or volume ID number of the read/write,
86 read-only, or backup volume to dump.
87
88 =item B<-time> <I<dump from time>>
89
90 Specifies whether the dump is full or incremental. Omit this argument to
91 create a full dump, or provide one of three acceptable values:
92
93 =over 4
94
95 =item *
96
97 The value C<0> (zero) to create a full dump.
98
99 =item *
100
101 A date in the format I<mm>B</>I<dd>B</>I<yyyy> (month, day and year) to
102 create an incremental dump that includes only files and directories with
103 modification timestamps later than midnight (12:00 a.m.) on the indicated
104 date. Valid values for the year range from C<1970> to C<2037>; higher
105 values are not valid because the latest possible date in the standard UNIX
106 representation is in 2038. The command interpreter automatically reduces
107 later dates to the maximum value. An example is C<01/13/1999>.
108
109 =item *
110
111 A date and time in the format B<">I<mm>B</>I<dd>B</>I<yyyy>
112 I<hh>B<:>I<MM>B<"> to create an incremental dump that includes only files
113 and directories with modification timestamps later than the specified date
114 and time. The date format is the same as for a date alone. Express the
115 time as hours and minutes (I<hh>:I<MM>) in 24-hour format (for example,
116 B<20:30> is 8:30 p.m.). Surround the entire expression with double quotes
117 (C<"">) because it contains a space.  An example is C<"01/13/1999 22:30">.
118
119 =back
120
121 =item B<-file> <I<dump file>>
122
123 Specifies the pathname of the file to which to write the dump. The file
124 can be in AFS, but not in the volume being dumped. A partial pathname is
125 interpreted relative to the current working directory. If this argument is
126 omitted, the dump is directed to the standard output stream.
127
128 =item B<-server> <I<server name>>
129
130 Specifies the file server machine on which the volume resides.  Provide
131 the B<-partition> argument along with this one.
132
133 =item B<-partition> <I<partition name>>
134
135 Specifies the partition on which the volume resides. Provide the
136 B<-server> argument along with this one.
137
138 =item B<-clone>
139
140 Normally, B<vos dump> locks the volume and dumps it, which blocks writes
141 to the volume while the dump is in progress.  If this flag is given, B<vos
142 dump> will instead clone the volume first (similar to what B<vos move>
143 would do) and then dumps the clone.  This can significantly decrease the
144 amount of time the volume is kept locked for dumps of large volumes.
145
146 =item B<-omitdirs>
147
148 By default, B<vos dump> includes all directory objects in an incremental
149 dump whether they've been changed or not.  If this option is given,
150 unchanged directories will be omitted.  This will reduce the size of the
151 dump and not cause problems if the incremental is restored, as expected,
152 on top of a volume containing the correct directory structure (such as one
153 created by restoring previous full and incremental dumps).
154
155 =include fragments/vos-common.pod
156
157 =back
158
159 =head1 EXAMPLES
160
161 The following command writes a full dump of the volume C<user.terry> to
162 the file F</afs/example.com/common/dumps/terry.dump>.
163
164    % vos dump -id user.terry -time 0 -file /afs/example.com/common/dumps/terry.dump
165
166 The following command writes an incremental dump of the volume
167 C<user.smith> to the file C<smith.990131.dump> in the current working
168 directory. Only those files in the volume with modification time stamps
169 later than 6:00 p.m. on 31 January 1999 are included in the dump.
170
171    % vos dump -id user.smith -time "01/31/1999 18:00" -file smith.990131.dump
172
173 =head1 PRIVILEGE REQUIRED
174
175 The issuer must be listed in the F</usr/afs/etc/UserList> file on the
176 machine specified with the B<-server> argument and on each database server
177 machine. If the B<-localauth> flag is included, the issuer must instead be
178 logged on to a server machine as the local superuser C<root>.
179
180 If the B<-file> argument is included, the issuer must also have permission
181 to insert and write in the directory that houses the file.
182
183 =head1 SEE ALSO
184
185 L<restorevol(1)>,
186 L<vos(1)>,
187 L<vos_examine(1)>,
188 L<vos_listvldb(1)>,
189 L<vos_restore(1)>
190
191 =head1 COPYRIGHT
192
193 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
194
195 This documentation is covered by the IBM Public License Version 1.0.  It was
196 converted from HTML to POD by software written by Chas Williams and Russ
197 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.