Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / backup_kill.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3backup_kill - Terminates a pending or running operation
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<backup kill> S<<< B<-id> <I<job ID or dump set name>> >>> [B<-help>]
11
12B<backup k> S<<< B<k -i> <I<job ID or dump set name>> >>> [B<-h>]
13
14=for html
15</div>
16
17=head1 DESCRIPTION
18
19The B<backup kill> command dequeues a Backup System operation that is
20pending, or terminates an operation that is running, in the current
21interactive session. It is available only in interactive mode. If the
22issuer of the B<backup interactive> command included the B<-localauth>
23flag, the B<-cell> argument, or both, then those settings apply to this
24command also.
25
26To terminate a dump operation, specify either the dump name
27(I<volume_set_name>.I<dump_level_name>) or its job ID number, which
28appears in the output from the B<backup jobs> command. To terminate any
29other type of operation, provide the job ID number.
30
31The effect of terminating an operation depends on the type and current
32state of the operation:
33
34=over 4
35
36=item *
37
38If an operation is still pending, the Tape Coordinator removes it from the
39queue with no other lasting effects.
40
41=item *
42
43If the Tape Coordinator is unable to process the termination signal before
44an operation completes, it simply confirms the operation's completion. The
45operator must take the action necessary to undo the effects of the
46incorrect operation.
47
48=item *
49
50If a tape labeling operation is running, the effect depends on when the
51Tape Coordinator receives the termination signal. The labeling operation
52is atomic, so it either completes or does not begin at all. Use the
53B<backup readlabel> command to determine if the labeling operation
54completed, and reissue the B<backup labeltape> command to overwrite the
55incorrect label if necessary.
56
57=item *
58
59If a tape scanning operation is running, it terminates with no other
60effects unless the B<-dbadd> flag was included on the B<backup>
61command. In that case, the Backup System possibly has already written new
62Backup Database records to represent dumps on the scanned tape. If
63planning to restart the scanning operation, first locate and remove the
64records created during the terminated operation: a repeated B<backup
65scantape> operation exits automatically when it finds that a record that
66it needs to create already exists.
67
68=item *
69
70If a dump operation is running, all of the volumes written to the tape or
71backup data file before the termination signal is received are complete
72and usable. If the operation is restarted, the Backup System performs all
73the dumps again from scratch, and assigns a new dump ID number. If writing
74the new dumps to the same tape or file, the operator must relabel it first
75if the interrupted dump is not expired. If writing the new dump to a
76different tape or file, the operator can remove the dump record associated
77with the interrupted dump to free up space in the database.
78
79=item *
80
81If a restore operation is running, completely restored volumes are online
82and usable. However, it is unlikely that many volumes are completely
83restored, given that complete restoration usually requires data from
84multiple tapes. If the termination signal comes before the Backup System
85has accessed all of the necessary tapes, each volume is only partially
86written and is never brought online. It is best to restart the restore
87operation from scratch to avoid possible inconsistencies. See also
88L</CAUTIONS>.
89
90=back
91
92=head1 CAUTIONS
93
94It is best not to issue the B<backup kill> command against restore
95operations. If the termination signal interrupts a restore operation as
96the Backup System is overwriting an existing volume, it is possible to
97lose the volume entirely (that is, to lose both the contents of the volume
98as it was before the restore and any data that was restored before the
99termination signal arrived). The data being restored still exists on the
100tape, but some data can be lost permanently.
101
102=head1 OPTIONS
103
104=over 4
105
106=item B<-id> <I<job ID or dump set name>>
107
108Identifies the backup operation to terminate. Provide one of two types of
109values:
110
111=over 4
112
113=item *
114
115The operation's job ID number, as displayed in the output of the B<backup
116jobs> command.
117
118=item *
119
120For a dump operation, either the job ID number or a dump name of the form
121I<volume_set_name>.I<dump_level_name>, where I<volume_set_name> is the
122name of the volume set being dumped and I<dump_level_name> is the last
123element in the dump level pathname at which the volume set is being
124dumped. The dump name appears in the output of the B<backup jobs> command
125along with the job ID number.
126
127=back
128
129=item B<-help>
130
131Prints the online help for this command. All other valid options are
132ignored.
133
134=back
135
136=head1 EXAMPLES
137
138The following command terminates the operation with job ID 5:
139
140 backup> kill 5
141
142The following command terminates the dump operation called
143C<user.sunday1>:
144
145 backup> kill user.sunday1
146
147=head1 PRIVILEGE REQUIRED
148
149The issuer must have the privilege required to initiate the operation
150being cancelled. Because this command can be issued only within the
151interactive session during which the operation was initiated, the required
152privilege is essentially guaranteed.
153
154=head1 SEE ALSO
155
156L<backup(8)>,
157L<backup_interactive(8)>,
158L<backup_jobs(8)>
159
160=head1 COPYRIGHT
161
162IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
163
164This documentation is covered by the IBM Public License Version 1.0. It was
165converted from HTML to POD by software written by Chas Williams and Russ
166Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.