Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / backup_adddump.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3backup_adddump - Defines a dump level in the dump hierarchy
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<backup adddump> S<<< B<-dump> <I<dump level name>>+ >>>
11 S<<< [B<-expires> <I<expiration date>>+] >>>
12 [B<-localauth>] S<<< [B<-cell> <I<cell name>>] >>> [B<-help>]
13
14B<backup addd> S<<< B<-d> <I<dump level name>>+ >>>
15 S<<< [B<-e> <I<expiration date>>+] >>>
16 [B<-l>] S<<< [B<-c> <I<cell name>>] >>> [B<-h>]
17
18=for html
19</div>
20
21=head1 DESCRIPTION
22
23The B<backup adddump> command creates one or more dump levels in the dump
24hierarchy stored in the Backup Database, and optionally assigns an
25expiration date to each one. All of the dump levels in the Backup Database
26collectively constitute the dump hierarchy.
27
28Use the B<-expires> argument to associate an expiration date with each
29dump level. When the Backup System subsequently creates a dump at the dump
30level, it uses the specified value to derive the dump's expiration date,
31which it records on the label of the tape (or backup data file). The
32Backup System refuses to overwrite a tape until after the latest
33expiration date of any dump that the tape contains, unless the B<backup
34labeltape> command is used to relabel the tape. If a dump level does not
35have an expiration date, the Backup System treats dumps created at the
36level as expired as soon as it creates them.
37
38(Note that the Backup System does not automatically remove a dump's record
39from the Backup Database when the dump reaches its expiration date, but
40only if the tape that contains the dump is recycled or relabeled. To
41remove expired and other obsolete dump records, use the B<backup
42deletedump> command.)
43
44Define either an absolute or relative expiration date:
45
46=over 4
47
48=item *
49
50An absolute expiration date defines the month/day/year (and, optionally,
51hour and minutes) at which a dump expires. If the expiration date predates
52the dump creation time, the Backup System immediately treats the dump as
53expired.
54
55=item *
56
57A relative date defines the number of years, months, or days (or a
58combination of the three) after the dump's creation that it expires. When
59the Backup System creates a dump at the dump level, it calculates an
60actual expiration date by adding the relative date to the start time of
61the dump operation.
62
63=back
64
65=head1 OPTIONS
66
67=over 4
68
69=item B<-dump> <I<dump level name>>+
70
71Names each dump level to add to the dump hierarchy. Precede full dump
72level names with a slash (for example, C</full>). Indicate an incremental
73dump level by preceding it with an ordered list of the dump levels
74directly above it in the hierarchy (its parent dump levels); use the slash
75as a separator. The parent dump levels must already exist. For example,
76the dump levels C</full> and C</full/incremental1> must exist when the
77incremental dump level C</full/incremental1/incremental2> is created.
78
79Dump level names can have any number of levels, but cannot exceed 256
80characters in length, including the slashes. The maximum length for any
81single level (the text between slashes) is 28 characters, not including
82the preceding slash.
83
84All alphanumeric characters are allowed in dump level names. Do not use
85the period (C<.>), however, because it is the separator between the volume
86set name and dump level name in the dump name assigned automatically by
87the B<backup dump> command. It is best not to include other metacharacters
88either; if using them, enclose them in double quotes (C<" ">) when issuing
89the B<backup adddump> command outside interactive mode.
90
91=item B<-expires> <I<expiration date>>+
92
93Defines the absolute or relative expiration date to associate with each
94dump level named by the B<-dump> argument. Absolute expiration dates have
95the following format:
96
97 [at] {NEVER | <mm>/<dd>/<yyyy> [<hh>:<MM>] }
98
99where the optional word at is followed either by the string C<NEVER>,
100which indicates that dumps created at the dump level never expire, or by a
101date value with a required portion (<mm> for month, <dd> for day, and
102<yyyy> for year) and an optional portion (<hh> for hours and <MM> for
103minutes).
104
105Omit the I<hh:MM> portion to use the default of midnight (00:00 hours), or
106provide a value in 24-hour format (for example, C<20:30> is 8:30 p.m.).
107Valid values for the year range from C<1970> to C<2037>; higher values are
108not valid because the latest possible date in the standard UNIX
109representation is in February 2038. The command interpreter automatically
110reduces later dates to the maximum value.
111
112Relative expiration dates have the following format:
113
114 [in] [<years>y] [<months>m] [<days>d]
115
116where the optional word in is followed by at least one of a number of
117years (maximum C<9999>) followed by the letter C<y>, a number of months
118(maximum C<12>) followed by the letter C<m>, or a number of days (maximum
119C<31>) followed by the letter C<d>. If providing more than one of the
120three, list them in the indicated order. If the date that results from
121adding the relative expiration value to a dump's creation time is later
122than the latest possible date in the UNIX time representation, the Backup
123System automatically reduces it to that date.
124
125=item B<-localauth>
126
127Constructs a server ticket using a key from the local
128F</usr/afs/etc/KeyFile> file. The B<backup> command interpreter presents
129it to the Backup Server, Volume Server and VL Server during mutual
130authentication. Do not combine this flag with the B<-cell> argument. For
131more details, see L<backup(8)>.
132
133=item B<-cell> <I<cell name>>
134
135Names the cell in which to run the command. Do not combine this argument
136with the B<-localauth> flag. For more details, see L<backup(8)>.
137
138=item B<-help>
139
140Prints the online help for this command. All other valid options are
141ignored.
142
143=back
144
145=head1 EXAMPLES
146
147The following command defines a full dump called C</1999> with a relative
148expiration date of one year:
149
150 % backup adddump -dump /1999 -expires in 1y
151
152The following command defines an incremental dump called
153C</sunday1/monday>1 with a relative expiration date of 13 days:
154
155 % backup adddump -dump /sunday1/monday1 -expires in 13d
156
157The following command defines two dump incremental dump levels,
158C</Monthly/Week1> and C</Monthly/Week2>. Their parent, the full dump level
159C</Monthly>, must already exist. The expiration date for both levels is
16012:00 a.m. on 1 January 2000.
161
162 % backup adddump -dump /Monthly/Week1 /Monthly/Week2 -expires at 01/01/2000
163
164=head1 PRIVILEGE REQUIRED
165
166The issuer must be listed in the F</usr/afs/etc/UserList> file on every
167machine where the Backup Server is running, or must be logged onto a
168server machine as the local superuser C<root> if the B<-localauth> flag is
169included.
170
171=head1 SEE ALSO
172
173L<backup(8)>,
174L<backup_deldump(8)>,
175L<backup_deletedump(8)>,
176L<backup_listdumps(8)>,
177L<backup_setexp(8)>
178
179=head1 COPYRIGHT
180
181IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
182
183This documentation is covered by the IBM Public License Version 1.0. It was
184converted from HTML to POD by software written by Chas Williams and Russ
185Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.