]> git.sur5r.net Git - bacula/docs/blob - docs/manual/console.tex
within a verbatim, use < and > instead of \lt{} etc.
[bacula/docs] / docs / manual / console.tex
1 %%
2 %%
3
4 \section*{Bacula Console}
5 \label{_ConsoleChapter}
6 \index[general]{Console!Bacula }
7 \index[general]{Bacula Console }
8 \index[console]{Console!Bacula }
9 \index[console]{Bacula Console }
10 \addcontentsline{toc}{section}{Bacula Console}
11
12 \subsection*{General}
13 \index[general]{General}
14 \addcontentsline{toc}{subsection}{General}
15
16 The {\bf Bacula Console} (sometimes called the User Agent) is a program that
17 allows the user or the System Administrator, to interact with the Bacula
18 Director daemon while the daemon is running. 
19
20 The current Bacula Console comes in two versions: a shell interface (TTY
21 style), and a GNOME GUI interface. Both permit the administrator or authorized
22 users to interact with Bacula. You can determine the status of a particular
23 job, examine the contents of the Catalog as well as perform certain tape
24 manipulations with the Console program. 
25
26 In addition, there is a wx-console built with wxWidgets that allows a graphic
27 restore of files. As of version 1.34.1 it is in an early stage of development,
28 but it already is quite useful. 
29
30 Since the Console program interacts with the Director through the network, your
31 Console and Director programs do not necessarily need to run on the same
32 machine. 
33
34 In fact, a certain minimal knowledge of the Console program is needed in order
35 for Bacula to be able to write on more than one tape, because when Bacula
36 requests a new tape, it waits until the user, via the Console program,
37 indicates that the new tape is mounted. 
38
39 \subsection*{Console Configuration}
40 \index[general]{Console Configuration}
41 \index[general]{Configuration!Console}
42 \index[console]{Console Configuration}
43 \index[console]{Configuration!Console}
44 \addcontentsline{toc}{subsection}{Console Configuration}
45
46 When the Console starts, it reads a standard Bacula configuration file named
47 {\bf bconsole.conf} or {\bf gnome-console.conf} in the case of the GNOME
48 Console version. This file allows default configuration of the Console, and at
49 the current time, the only Resource Record defined is the Director resource,
50 which gives the Console the name and address of the Director. For more
51 information on configuration of the Console program, please see the 
52 \ilink{Console Configuration File}{_ChapterStart36} Chapter of
53 this document. 
54
55 \subsection*{Running the Console Program}
56 \index[general]{Running the Console Program }
57 \index[general]{Program!Running the Console }
58 \index[console]{Running the Console Program }
59 \index[console]{Program!Running the Console }
60 \addcontentsline{toc}{subsection}{Running the Console Program}
61
62 After launching the Console program (bconsole), it will prompt you for the
63 next command with an asterisk (*). (Note, in the GNOME version, the prompt is
64 not present; you simply enter the commands you want in the command text box at
65 the bottom of the screen.) Generally, for all commands, you can simply enter
66 the command name and the Console program will prompt you for the necessary
67 arguments. Alternatively, in most cases, you may enter the command followed by
68 arguments. The general format is: 
69
70 \footnotesize
71 \begin{verbatim}
72  <command> <keyword1>[=<argument1>] <keyword2>[=<argument2>] ...
73 \end{verbatim}
74 \normalsize
75
76 where {\bf command} is one of the commands listed below; {\bf keyword} is one
77 of the keywords listed below (usually followed by an argument); and {\bf
78 argument} is the value. The command may be abbreviated to the shortest unique
79 form. If two commands have the same starting letters, the one that will be
80 selected is the one that appears first in the {\bf help} listing. If you want
81 the second command, simply spell out the full command. None of the keywords
82 following the command may be abbreviated. 
83
84 For example: 
85
86 \footnotesize
87 \begin{verbatim}
88 list files jobid=23
89 \end{verbatim}
90 \normalsize
91
92 will list all files saved for JobId 23. Or: 
93
94 \footnotesize
95 \begin{verbatim}
96 show pools
97 \end{verbatim}
98 \normalsize
99
100 will display all the Pool resource records. 
101
102 \subsection*{Stopping the Console Program}
103 \index[general]{Program!Stopping the Console }
104 \index[general]{Stopping the Console Program }
105 \index[console]{Program!Stopping the Console }
106 \index[console]{Stopping the Console Program }
107 \addcontentsline{toc}{subsection}{Stopping the Console Program}
108
109 Normally, you simply enter {\bf quit} or {\bf exit} and the Console program
110 will terminate. However, it waits until the Director acknowledges the command.
111 If the Director is already doing a lengthy command (e.g. prune), it may take
112 some time. If you want to immediately terminate the Console program, enter the
113 {\bf .quit} command. 
114
115 There is currently no way to interrupt a Console command once issued (i.e.
116 Ctrl-C does not work). However, if you are at a prompt that is asking you to
117 select one of several possibilities and you would like to abort the command,
118 you can enter a period ({\bf .}), and in most cases, you will either be
119 returned to the main command prompt or if appropriate the previous prompt (in
120 the case of nested prompts). In a few places such as where it is asking for a
121 Volume name, the period will be taken to be the Volume name. In that case, you
122 will most likely be able to cancel at the next prompt. 
123
124 There are three keywords used to refer to Jobs that must be clearly
125 understood. They are the following:
126 \begin{description}
127 \item [jobid]
128   The JobId is the numeric jobid that is printed in the Job
129   Report output. It is the index of the database record for the
130   given job. While it is unique for all the existing Job records
131   in the catalog database, the same JobId can be reused once a
132   Job is removed from the catalog. Probably you will refer
133   specific Jobs that ran using their numeric JobId.
134 \item [ujobid]
135   The ujobid is a unique job identification that is printed
136   in the Job Report output. At the current time, it consists
137   of the Job name (from the Name directive for the job) appended
138   with the date and time the job was run. This keyword is useful
139   if you want to completely identify the Job instance run.
140 \item [job | jobname]
141   The Job or Jobname keyword refers to the name you specified
142   in the Job resource, and hence it refers to any number of
143   Jobs that ran.  It is typically useful if you want to list
144   all jobs of a particular name.
145 \end{description}
146
147 \label{list}
148 \subsection*{Alphabetic List of Console Commands}
149 \index[general]{Commands!Alphabetic List of Console }
150 \index[general]{Alphabetic List of Console Commands }
151 \index[console]{Commands!Alphabetic List of Console }
152 \index[console]{Alphabetic List of Console Commands }
153 \addcontentsline{toc}{subsection}{Alphabetic List of Console Commands}
154
155 The following commands are currently implemented: 
156
157 \begin{description}
158 \item [{add [pool=\lt{}pool-name\gt{} storage=\lt{}storage\gt{}
159    jobid=\lt{}JobId\gt{}]} ]
160    \index[console]{add}
161 This command is used to add Volumes to an existing Pool. The  Volume names
162 entered are placed in the Catalog and thus become  available for backup
163 operations. Normally, the {\bf label}  command is used rather than this
164 command because the {\bf label}  command labels the physical media (tape) and
165 does the equivalent of  the {\bf add} command. This command affects only the
166 Catalog and  not the physical media (data on Volumes). The physical media must
167 exist and be labeled before use (usually with the {\bf label}  command). This
168 command can, however, be useful if you wish to add  a number of Volumes to the
169 Pool that will be physically labeled at  a later time. It can also be useful
170 if you are importing a tape  from another site. Please see the {\bf label}
171 command below for  the list of legal characters in a Volume name.  
172
173 \item [autodisplay on/off]
174    \index[console]{autodisplay on/off}
175    This command accepts {\bf on} or {\bf off} as an argument, and turns
176    auto-display of messages on or off respectively.  The default for the
177    console program is {\bf off}, which means that you will be notified when
178    there are console messages pending, but they will not automatically be
179    displayed.  The default for the gnome-console program is {\bf on}, which
180    means that messages will be displayed when they are received (usually
181    within 5 seconds of them being generated).
182
183    When autodisplay is turned off, you must explicitly retrieve the
184    messages with the {\bf messages} command.  When autodisplay is turned
185    on, the messages will be displayed on the console as they are received.
186
187 \item [automount on/off]
188    \index[console]{automount on/off}
189    This command accepts {\bf on} or {\bf off} as the argument, and turns
190    auto-mounting of the tape after a {\bf label} command on or off
191    respectively.  The default is {\bf on}.  If {\bf automount} is turned
192    off, you must explicitly {\bf mount} the tape after a label command to
193    use it.
194
195 \item [{cancel [jobid=\lt{}number\gt{} job=\lt{}job-name\gt{} ujobid=\lt{}unique-jobid\gt{}]}]
196    \index[console]{cancel jobid}
197    This command is used to cancel a job and accepts {\bf jobid=nnn} or {\bf
198    job=xxx} as an argument where nnn is replaced by the JobId and xxx is
199    replaced by the job name.  If you do not specify a keyword, the Console
200    program will prompt you with the names of all the active jobs allowing
201    you to choose one.
202
203    Once a Job is marked to be canceled, it may take a bit of time
204    (generally within a minute) before it actually terminates, depending on
205    what operations it is doing.
206
207 \item [{ create [pool=\lt{}pool-name\gt{}]}]
208    \index[console]{create pool}
209    This command is used to create a Pool record in the database using the
210    Pool resource record defined in the Director's configuration file.  So
211    in a sense, this command simply transfers the information from the Pool
212    resource in the configuration file into the Catalog.  Normally this
213    command is done automatically for you when the Director starts providing
214    the Pool is referenced within a Job resource.  If you use this command
215    on an existing Pool, it will automatically update the Catalog to have
216    the same information as the Pool resource.  After creating a Pool, you
217    will most likely use the {\bf label} command to label one or more
218    volumes and add their names to the Media database.
219
220    When starting a Job, if Bacula determines that there is no Pool record
221    in the database, but there is a Pool resource of the appropriate name,
222    it will create it for you.  If you want the Pool record to appear in the
223    database immediately, simply use this command to force it to be created.
224
225 \item [{ delete [volume=\lt{}vol-name\gt{} pool=\lt{}pool-name\gt{}  job
226    jobid=\lt{}id\gt{}] }]
227    \index[console]{delete}
228    The delete command is used to delete a Volume, Pool or Job record from
229    the Catalog as well as all associated catalog Volume records that were
230    created.  This command operates only on the Catalog database and has no
231    effect on the actual data written to a Volume.  This command can be
232    dangerous and we strongly recommend that you do not use it unless you
233    know what you are doing.
234
235    If the keyword {\bf Volume} appears on the command line, the named
236    Volume will be deleted from the catalog, if the keyword {\bf Pool}
237    appears on the command line, a Pool will be deleted, and if the keyword
238    {\bf Job} appears on the command line, a Job and all its associated
239    records (File and JobMedia) will be deleted from the catalog.  The full
240    form of this command is:
241
242 delete pool=\lt{}pool-name\gt{}
243
244    or  
245
246 delete volume=\lt{}volume-name\gt{} pool=\lt{}pool-name\gt{}  or  
247
248 delete JobId=\lt{}job-id\gt{} JobId=\lt{}job-id2\gt{} ...  or  
249
250 delete Job JobId=n,m,o-r,t ...  
251
252    The first form deletes a Pool record from the catalog database.  The
253    second form deletes a Volume record from the specified pool in the
254    catalog database.  The third form deletes the specified Job record from
255    the catalog database.  The last form deletes JobId records for JobIds
256    n, m, o, p, q, r, and t.  Where each one of the n,m,...  is, of course, a
257    number. That is a "delete jobid" accepts lists and ranges of
258    jobids.
259
260 \label{estimate}
261 \item [estimate]
262    \index[console]{estimate}
263    Using this command, you can get an idea how many files will be backed
264    up, or if you are unsure about your Include statements in your FileSet,
265    you can test them without doing an actual backup.  The default is to
266    assume a Full backup.  However, you can override this by specifying a
267    {\bf level=Incremental} or {\bf level=Differential} on the command line.
268    A Job name must be specified or you will be prompted for one, and
269    optionally a Client and FileSet may be specified on the command line.
270    It then contacts the client which computes the number of files and bytes
271    that would be backed up.  Please note that this is an estimate
272    calculated from the number of blocks in the file rather than by reading
273    the actual bytes.  As such, the estimated backup size will generally be
274    larger than an actual backup.
275
276    Optionally you may specify the keyword {\bf listing} in  which case, all the
277    files to be backed up will be listed.  Note, it could take quite some time to
278    display them if the  backup is large. The full form is:  
279
280 estimate job=\lt{}job-name\gt{} listing client=\lt{}client-name\gt{} 
281 fileset=\lt{}fileset-name\gt{} level=\lt{}level-name\gt{}  
282
283    Specification of the {\bf job} is sufficient, but you can also override
284    the client, fileset and/or level by specifying them on the estimate
285    command line.
286  
287
288 As an example, you might do:  
289
290 \footnotesize
291 \begin{verbatim}
292      @output /tmp/listing
293      estimate job=NightlySave listing level=Incremental
294      @output
295 \end{verbatim}
296 \normalsize
297
298 which will do a full listing of all files to be backed up for the  Job {\bf
299 NightlySave} during an Incremental save and put it in the  file {\bf
300 /tmp/listing}. 
301
302 \item [help]
303    \index[console]{help}
304    This command displays the list of commands available.  
305
306 \item [label]
307    \index[console]{label}
308    \index[console]{relabel}
309    \index[general]{label}
310    \index[general]{relabel}
311    This command is used to label physical volumes.  The full form of this command
312    is:
313
314 label storage=\lt{}storage-name\gt{} volume=\lt{}volume-name\gt{}
315 slot=\lt{}slot\gt{}  
316
317    If you leave out any part, you will be prompted for it.  The media type
318    is automatically taken from the Storage resource definition that you
319    supply.  Once the necessary information is obtained, the Console program
320    contacts the specified Storage daemon and requests that the tape be
321    labeled.  If the tape labeling is successful, the Console program will
322    create a Volume record in the appropriate Pool.
323
324    The Volume name is restricted to letters, numbers, and the special
325    characters hyphen ({\bf -}), underscore ({\bf \_}), colon ({\bf :}), and
326    period ({\bf .}).  All other characters including a space are illegal.
327    This restriction is to ensure good readability of Volume names to reduce
328    operator errors.
329
330    Please note, when labeling a blank tape, Bacula will get {\bf read I/O
331    error} when it attempts to ensure that the tape is already labeled.  If
332    you wish to avoid getting these messages, please write and EOF mark on
333    your tape before attempting to label it:
334
335 \footnotesize
336 \begin{verbatim}
337        mt rewind
338        mt weof
339        
340 \end{verbatim}
341 \normalsize
342
343 The label command can fail for a number of reasons:  
344
345 \begin{enumerate}
346 \item The Volume name you specify is already in the  Volume database.  
347 \item The Storage daemon has a tape already mounted on the  device, in which
348    case you must {\bf unmount}  the device, insert a blank tape, then do the 
349    {\bf label} command.  
350 \item The tape in the device is already a Bacula labeled tape.  (Bacula will
351    never relabel a Bacula labeled tape unless it is recycled and you use the
352    {\bf relabel} command).  
353 \item There is no tape in the drive.  
354 \end{enumerate}
355
356 There are two ways to relabel a volume that already has a Bacula label. The
357 brute  force method is to write an end of file mark on the tape  using the
358 system {\bf mt} program, something like the  following:  
359
360 \footnotesize
361 \begin{verbatim}
362        mt -f /dev/st0 rewind
363        mt -f /dev/st0 weof
364 \end{verbatim}
365 \normalsize
366
367 Then you use the {\bf label} command to add a new label.  However, this could
368 leave traces of the old volume in the  catalog.  
369
370 The preferable method to relabel a tape is to first {\bf purge}  the volume,
371 either automatically, or explicitly with the  {\bf purge} command, then use
372 the {\bf relabel} command described  below.  
373
374 If your autochanger has barcode labels, you can label all the  Volumes in your
375 autochanger one after another by using the  {\bf label barcodes} command. For
376 each tape in the changer containing  a barcode, Bacula will mount the tape and
377 then label it with the  same name as the barcode. An appropriate Media record
378 will also be  created in the catalog. Any barcode that begins with the same
379 characters  as specified on the "CleaningPrefix=xxx" directive in the
380 Director's Pool resource, will be
381 treated as a  cleaning tape, and will not be labeled. However,
382 an entry for the cleaning tape will be created in
383 the catalog. For example with:  
384
385 \footnotesize
386 \begin{verbatim}
387         Pool {
388           Name ...
389           Cleaning Prefix = "CLN"
390         }
391         
392 \end{verbatim}
393 \normalsize
394
395 Any slot containing a barcode of CLNxxxx will be treated as a cleaning  tape
396 and will not be mounted. Note, the full form of the command is: 
397
398 \footnotesize
399 \begin{verbatim}
400 update storage=xxx pool=yyy slots=1-5,10 barcodes
401 \end{verbatim}
402 \normalsize
403
404 \item [list]
405    \index[console]{list}
406    The list command lists the requested contents of the Catalog.  The
407    various fields of each record are listed on a single line.  The various
408    forms of the list command are:
409 \footnotesize
410 \begin{verbatim}
411    list jobs
412    
413    list jobid=<id>           (list jobid id)
414
415    list ujobid<unique job name> (list job with unique name)
416    
417    list job=<job-name>   (list all jobs with "job-name")
418
419    list jobname=<job-name>  (same as above)
420
421      In the above, you can add "limit=nn" to limit the output to
422      nn jobs.
423    
424    list jobmedia
425    
426    list jobmedia jobid=<id>
427    
428    list jobmedia job=<job-name>
429    
430    list files jobid=<id>
431    
432    list files job=<job-name>
433    
434    list pools
435    
436    list clients
437    
438    list jobtotals
439    
440    list volumes
441    
442    list volumes jobid=<id>
443    
444    list volumes pool=<pool-name>
445    
446    list volumes job=<job-name>
447    
448    list volume=<volume-name>  
449
450    list nextvolume job=<job-name>
451    
452    list nextvol job=<job-name>
453
454    list nextvol job=<job-name> days=nnn
455
456
457
458 \end{verbatim}
459 \normalsize
460
461    What most of the above commands do should be more or less obvious.  In
462    general if you do not specify all the command line arguments, the
463    command will prompt you for what is needed.
464
465    The {\bf list nextvol} command will print the Volume name to be used by
466    the specified job.  You should be aware that exactly what Volume will be
467    used depends on a lot of factors including the time and what a prior job
468    will do.  It may fill a tape that is not full when you issue this
469    command.  As a consequence, this command will give you a good estimate
470    of what Volume will be used but not a definitive answer.  In addition,
471    this command may have certain side effect because it runs through the
472    same algorithm as a job, which means it may automatically purge or
473    recycle a Volume. By default, the job specified must run within the 
474    next two days or no volume will be found. You can, however, use the
475    {\bf days=nnn} specification to specify up to 50 days. For example,
476    if on Friday, you want to see what Volume will be needed on Monday,
477    for job MyJob, you would use {\bf list nextvol job=MyJob days=3}.
478
479    If you wish to add specialized commands that list the contents of the
480    catalog, you can do so by adding them to the {\bf query.sql} file.
481    However, this takes some knowledge of programming SQL. Please see the
482    {\bf query} command below for additional information.  See below for
483    listing the full contents of a catalog record with the {\bf llist}
484    command.
485
486    As an example, the command {\bf list pools} might produce  the following
487    output: 
488
489 \footnotesize
490 \begin{verbatim}
491 +------+---------+---------+---------+----------+-------------+
492 | PoId | Name    | NumVols | MaxVols | PoolType | LabelFormat |
493 +------+---------+---------+---------+----------+-------------+
494 |    1 | Default |       0 |       0 | Backup   | *           |
495 |    2 | Recycle |       0 |       8 | Backup   | File        |
496 +------+---------+---------+---------+----------+-------------+
497 \end{verbatim}
498 \normalsize
499
500    As mentioned above, the {\bf list} command lists what is in the
501    database.  Some things are put into the database immediately when Bacula
502    starts up, but in general, most things are put in only when they are
503    first used, which is the case for a Client as with Job records, etc.
504
505    Bacula should create a client record in the database the first time you
506    run a job for that client.  Doing a {\bf status} will not cause a
507    database record to be created.  The client database record will be
508    created whether or not the job fails, but it must at least start.  When
509    the Client is actually contacted, additional info from the client will
510    be added to the client record (a "uname -a" output).
511
512    If you want to see what Client resources you have available in your conf
513    file, you use the Console command {\bf show clients}.
514
515 \item [llist]
516    \index[console]{llist}
517    The llist or "long list" command takes all the same arguments that the
518    list command described above does.  The difference is that the llist
519    command list the full contents of each database record selected.  It
520    does so by listing the various fields of the record vertically, with one
521    field per line.  It is possible to produce a very large number of output
522    lines with this command.
523
524    If instead of the {\bf list pools} as in the example above, you enter
525    {\bf llist pools} you might get the following output:
526
527 \footnotesize
528 \begin{verbatim}
529           PoolId: 1
530             Name: Default
531          NumVols: 0
532          MaxVols: 0
533          UseOnce: 0
534       UseCatalog: 1
535  AcceptAnyVolume: 1
536     VolRetention: 1,296,000
537   VolUseDuration: 86,400
538       MaxVolJobs: 0
539      MaxVolBytes: 0
540        AutoPrune: 0
541          Recycle: 1
542         PoolType: Backup
543      LabelFormat: *
544           PoolId: 2
545             Name: Recycle
546          NumVols: 0
547          MaxVols: 8
548          UseOnce: 0
549       UseCatalog: 1
550  AcceptAnyVolume: 1
551     VolRetention: 3,600
552   VolUseDuration: 3,600
553       MaxVolJobs: 1
554      MaxVolBytes: 0
555        AutoPrune: 0
556          Recycle: 1
557         PoolType: Backup
558      LabelFormat: File
559       
560 \end{verbatim}
561 \normalsize
562
563 \item [messages]
564    \index[console]{messages}
565    This command causes any pending  console messages to be immediately displayed.
566  
567
568 \item [mount]
569    \index[console]{mount}
570    The mount command is used to get Bacula to read a volume on a physical
571    device.  It is a way to tell Bacula that you have mounted a tape and
572    that Bacula should examine the tape.  This command is used only after
573    there was no Volume in a drive and Bacula requests you to mount a new
574    Volume or when you have specifically unmounted a Volume with the {\bf
575    unmount} console command, which causes Bacula to close the drive.  If
576    you have an autoloader, the mount command will not cause Bacula to
577    operate the autoloader.  The various forms of the mount command are:
578
579 mount  storage=\lt{}storage-name\gt{}
580
581 mount [ jobid=\lt{}id\gt{} |  job=\lt{}job-name\gt{} ]
582
583    If you have specified {\bf Automatic  Mount = yes} in the Storage daemon's
584    Device resource,  under most circumstances, Bacula will automatically access 
585    the Volume unless you have explicitly {\bf unmount}ed it in  the Console
586    program. 
587
588 \item[python]
589    \index[console]{python}
590   The python command takes a single argument {\bf restart}:
591
592 python restart
593
594    This causes the Python interpreter in the Director to be reinitialized.
595    This can be helpful for testing because once the Director starts and the
596    Python interpreter is initialized, there is no other way to make it
597    accept any changes to the startup script {\bf DirStartUp.py}.  For more
598    details on Python scripting, please see the \ilink{Python
599    Scripting}{_ChapterStart60} chapter of this manual.
600
601 \label{ManualPruning}
602 \item [prune]
603    \index[console]{prune}
604    The Prune command allows you to safely remove expired database records
605    from Jobs and Volumes.  This command works only on the Catalog database
606    and does not affect data written to Volumes.  In all cases, the Prune
607    command applies a retention period to the specified records.  You can
608    Prune expired File entries from Job records; you can Prune expired Job
609    records from the database, and you can Prune both expired Job and File
610    records from specified Volumes.
611
612 prune files|jobs|volume client=\lt{}client-name\gt{} 
613 volume=\lt{}volume-name\gt{}  
614
615    For a Volume to be pruned, the {\bf VolStatus} must be Full, Used, or
616    Append, otherwise the pruning will not take place.
617
618 \item [purge]
619    \index[console]{purge}
620    The Purge command will delete associated Catalog database records from
621    Jobs and Volumes without considering the retention period.  {\bf Purge}
622    works only on the Catalog database and does not affect data written to
623    Volumes.  This command can be dangerous because you can delete catalog
624    records associated with current backups of files, and we recommend that
625    you do not use it unless you know what you are doing.  The permitted
626    forms of {\bf purge} are:
627
628 purge files jobid=\lt{}jobid\gt{}|job=\lt{}job-name\gt{}|client=\lt{}client-name\gt{} 
629
630 purge jobs client=\lt{}client-name\gt{} (of all jobs)
631
632 purge volume|volume=\lt{}vol-name\gt{} (of all jobs)
633
634 For the {\bf purge} command to work on Volume Catalog database  records the
635 {\bf VolStatus}  must be Append, Full, Used, or Error.  
636
637 The actual data written to the Volume will be unaffected by  this command.  
638
639 \item [relabel]
640    \index[console]{relabel}
641    \index[general]{relabel}
642    This command is used to label physical volumes.  The full form of this
643    command is:
644
645 relabel storage=\lt{}storage-name\gt{} oldvolume=\lt{}old-volume-name\gt{}  
646     volume=\lt{}newvolume-name\gt{} 
647  
648    If you leave out any part, you will be prompted for it.  In order for
649    the Volume (old-volume-name) to be relabeled, it must be in the catalog,
650    and the volume status must be marked {\bf Purged} or {\bf Recycle}.
651    This happens automatically as a result of applying retention periods, or
652    you may explicitly purge the volume using the {\bf purge} command.
653
654    Once the volume is physically relabeled, the old data previously written
655    on the Volume is lost and cannot be recovered.
656
657 \item [release]
658    \index[console]{release}
659    This command is used to cause the Storage daemon to rewind (release) the
660    current tape in the drive, and to re-read the Volume label the next time
661    the tape is used.
662
663 release storage=\lt{}storage-name\gt{}  
664
665    After a release command, the device is still kept open by Bacula (unless
666    Always Open is set to No in the Storage Daemon's configuration) so it
667    cannot be used by another program.  However, with some tape drives, the
668    operator can remove the current tape and to insert a different one, and
669    when the next Job starts, Bacula will know to re-read the tape label to
670    find out what tape is mounted.  If you want to be able to use the drive
671    with another program (e.g.  {\bf mt}), you must use the {\bf unmount}
672    command to cause Bacula to completely release (close) the device.
673
674 \item [reload]
675   \index[console]{reload}
676   The reload command causes the Director to re-read its configuration
677   file and apply the new values. The new values will take effect     
678   immediately for all new jobs.  However, if you change schedules,
679   be aware that the scheduler pre-schedules jobs up to two hours in
680   advance, so any changes that are to take place during the next two
681   hours may be delayed.  Jobs that have already been scheduled to run
682   (i.e. surpassed their requested start time) will continue with the
683   old values.  New jobs will use the new values. Each time you issue
684   a reload command while jobs are running, the prior config values   
685   will queued until all jobs that were running before issuing
686   the reload terminate, at which time the old config values will
687   be released from memory. The Directory permits keeping up to
688   10 prior set of configurations before it will refuse a reload
689   command. Once at least one old set of config values has been
690   released it will again accept new reload commands. 
691
692    While it is possible to reload the Director's configuration on the fly,
693    even while jobs are executing, this is a complex operation and not
694    without side effects.  Accordingly, if you have to reload the Director's
695    configuration while Bacula is running, it is advisable to restart the
696    Director at the next convenient opportunity.
697
698 \label{restore_command}
699 \item [restore]
700    \index[console]{restore}
701    The restore command allows you to select one or more Jobs (JobIds) to be
702    restored using various methods.  Once the JobIds are selected, the File
703    records for those Jobs are placed in an internal Bacula directory tree,
704    and the restore enters a file selection mode that allows you to
705    interactively walk up and down the file tree selecting individual files
706    to be restored.  This mode is somewhat similar to the standard Unix {\bf
707    restore} program's interactive file selection mode.
708
709 restore storage=\lt{}storage-name\gt{} client=\lt{}client-name\gt{} 
710   where=\lt{}path\gt{} pool=\lt{}pool-name\gt{} fileset=\lt{}fileset-name\gt{} 
711   select current all done  
712
713    Where {\bf current}, if specified, tells the restore command to
714    automatically select a restore to the most current backup.  If not
715    specified, you will be prompted.  The {\bf all} specification tells the
716    restore command to restore all files.  If it is not specified, you will
717    be prompted for the files to restore.  For details of the {\bf restore}
718    command, please see the \ilink{Restore Chapter}{_ChapterStart13} of this
719    manual.
720
721 \item [run]
722    \index[console]{run}
723    This command allows you to schedule jobs  to be run immediately. The full form
724    of the command is:
725
726 run job=\lt{}job-name\gt{} client=\lt{}client-name\gt{}
727   fileset=\lt{}FileSet-name\gt{}  level=\lt{}level-keyword\gt{}
728   storage=\lt{}storage-name\gt{}  where=\lt{}directory-prefix\gt{}
729   when=\lt{}universal-time-specification\gt{}  yes  
730
731    Any information that is needed but not specified will be listed for
732    selection, and before starting the job, you will be prompted to accept,
733    reject, or modify the parameters of the job to be run, unless you have
734    specified {\bf yes}, in which case the job will be immediately sent to
735    the scheduler.
736
737    On my system, when I enter a run command, I get the following  prompt:  
738
739 \footnotesize
740 \begin{verbatim}
741 A job name must be specified.
742 The defined Job resources are:
743      1: Matou
744      2: Polymatou
745      3: Rufus
746      4: Minimatou
747      5: Minou
748      6: PmatouVerify
749      7: MatouVerify
750      8: RufusVerify
751      9: Watchdog
752 Select Job resource (1-9):
753      
754 \end{verbatim}
755 \normalsize
756
757 If I then select number 5, I am prompted with:  
758
759 \footnotesize
760 \begin{verbatim}
761 Run Backup job
762 JobName:  Minou
763 FileSet:  Minou Full Set
764 Level:    Incremental
765 Client:   Minou
766 Storage:  DLTDrive
767 Pool:     Default
768 When:     2003-04-23 17:08:18
769 OK to run? (yes/mod/no):
770      
771 \end{verbatim}
772 \normalsize
773
774 If I now enter {\bf yes}, the Job will be run. If I enter {\bf mod},  I will
775 be presented with the following prompt.  
776
777 \footnotesize
778 \begin{verbatim}
779 Parameters to modify:
780      1: Level
781      2: Storage
782      3: Job
783      4: FileSet
784      5: Client
785      6: When
786      7: Pool
787 Select parameter to modify (1-7):
788      
789 \end{verbatim}
790 \normalsize
791
792 If you wish to start a job at a later time, you can do so by setting  the When
793 time. Use the {\bf mod} option and select {\bf When} (no. 6).  Then enter the
794 desired start time in YYYY-MM-DD HH:MM:SS format.  
795
796 \item [setdebug]
797    \index[dir]{setdebug}
798    This command is used to set the debug level in each  daemon. The form of this
799    command is:
800
801 setdebug level=nn [trace=0/1 client=\lt{}client-name\gt{} | dir | director |
802   storage=\lt{}storage-name\gt{} | all]  
803
804    If trace=1 is set, then the tracing will be enabled, and the daemon
805    where the setdebug applies will be placed in trace mode, and all debug
806    output will go to the file {\bf bacula.trace} in the current directory
807    of the daemon.  Normally, tracing is used only for Win32 clients where
808    the debug output cannot be written to a terminal or redirected to a
809    file.  When tracing, each debug output message is appended to the trace
810    file.  You must explicitly delete the file when you are done.
811
812 \item [show]
813    \index[console]{show}
814    The show command will list the Director's resource records as defined in
815    the Director's configuration file (normally {\bf bacula-dir.conf}).
816    This command is used mainly for debugging purposes by developers.  The
817    following keywords are accepted on the show command line: directors,
818    clients, counters, jobs, storages, catalogs, schedules, filesets,
819    groups, pools, messages, all, help.  Please don't confuse this command
820    with the {\bf list}, which displays the contents of the catalog.
821
822 \item [sqlquery]
823    \index[dir]{sqlquery}
824    The sqlquery command puts the Console program into SQL query mode where
825    each line you enter is concatenated to the previous line until a
826    semicolon (;) is seen.  The semicolon terminates the command, which is
827    then passed directly to the SQL database engine.  When the output from
828    the SQL engine is displayed, the formation of a new SQL command begins.
829    To terminate SQL query mode and return to the Console command prompt,
830    you enter a period (.) in column 1.
831
832    Using this command, you can query the SQL catalog database directly.
833    Note you should really know what you are doing otherwise you could
834    damage the catalog database.  See the {\bf query} command below for
835    simpler and safer way of entering SQL queries.
836
837    Depending on what database engine you are using (MySQL, PostgreSQL or
838    SQLite), you will have somewhat different SQL commands available.  For
839    more detailed information, please refer to the MySQL, PostgreSQL or
840    SQLite documentation.
841
842 \item [status]
843    \index[dir]{status}
844    This command will display the status of the next jobs that are scheduled
845    during the next twenty-four hours as well as the status of currently
846    running jobs.  The full form of this command is:
847
848 status [all | dir=\lt{}dir-name\gt{} | director | 
849   client=\lt{}client-name\gt{} | storage=\lt{}storage-name\gt{} |
850   days=nnn]
851
852    If you do a {\bf status dir}, the console will list any currently
853    running jobs, a summary of all jobs scheduled to be run in the next 24
854    hours, and a listing of the last 10 terminated jobs with their statuses.
855    The scheduled jobs summary will include the Volume name to be used.  You
856    should be aware of two things: 1.  to obtain the volume name, the code
857    goes through the same code that will be used when the job runs, which
858    means that it may prune or recycle a Volume; 2.  The Volume listed is
859    only a best guess.  The Volume actually used may be different because of
860    the time difference (more durations may expire when the job runs) and
861    another job could completely fill the Volume requiring a new one.
862
863    In the Running Jobs listing, you may find the following types of
864    information:
865
866
867 \footnotesize
868 \begin{verbatim}
869 2507 Catalog MatouVerify.2004-03-13_05.05.02 is waiting execution
870 5349 Full    CatalogBackup.2004-03-13_01.10.00 is waiting for higher
871              priority jobs to finish
872 5348 Differe Minou.2004-03-13_01.05.09 is waiting on max Storage jobs
873 5343 Full    Rufus.2004-03-13_01.05.04 is running
874 \end{verbatim}
875 \normalsize
876
877    Looking at the above listing from bottom to top, obviously JobId 5343
878    (Rufus) is running.  JobId 5348 (Minou) is waiting for JobId 5343 to
879    finish because it is using the Storage resource, hence the "waiting on
880    max Storage jobs".  JobId 5349 has a lower priority than all the other
881    jobs so it is waiting for higher priority jobs to finish, and finally,
882    JobId 2508 (MatouVerify) is waiting because only one job can run at a
883    time, hence it is simply "waiting execution"
884
885    If you do a {\bf status dir}, it will by default list the first
886    occurrence of all jobs that are scheduled today and tomorrow.  If you
887    wish to see the jobs that are scheduled in the next 3 days (e.g.  on
888    Friday you want to see the first occurrence of what tapes are scheduled
889    to be used on Friday, the weekend, and Monday), you can add the {\bf
890    days=3} option.  Note, a {\bf days=0} shows the first occurrence of jobs
891    scheduled today only.  If you have multiple run statements, the first
892    occurrence of each run statement for the job will be displayed for the
893    period specified.
894
895 \item [unmount]
896    \index[console]{unmount}
897    This command causes the indicated Bacula Storage  daemon to unmount the
898    specified device. The forms of the command  are the same as the mount command:
899 \footnotesize
900 \begin{verbatim}
901 unmount storage=<storage-name>
902
903 unmount [ jobid=<id> | job=<job-name> ]
904 \end{verbatim}
905 \normalsize
906
907 \label{UpdateCommand}
908 \item [update]
909    \index[console]{update}
910    This command will update the catalog for either a specific Pool record, a Volume
911    record, or the Slots in an  autochanger with barcode capability. In the case
912    of updating a  Pool record, the new information will be automatically taken
913    from  the corresponding Director's configuration resource record. It  can be
914    used to increase the maximum number of volumes permitted or  to set a maximum
915    number of volumes. The following main  keywords may be specified:  
916 \footnotesize
917 \begin{verbatim}
918    media, volume, pool, slots  
919 \end{verbatim}
920 \normalsize
921
922 In the case of updating a  Volume, you will be prompted for which value you
923 wish to change.  The following Volume parameters may be changed:  
924
925 \footnotesize
926 \begin{verbatim}
927  
928    Volume Status
929    Volume Retention Period
930    Volume Use Duration
931    Maximum Volume Jobs
932    Maximum Volume Files
933    Maximum Volume Bytes
934    Recycle Flag
935    Slot
936    InChanger Flag
937    Pool
938    Volume Files
939    Volume from Pool
940    All Volumes from Pool
941    
942 \end{verbatim}
943 \normalsize
944
945    For slots {\bf update slots}, Bacula will obtain a list of slots and
946    their barcodes from the Storage daemon, and for each barcode found, it
947    will automatically update the slot in the catalog Media record to
948    correspond to the new value.  This is very useful if you have moved
949    cassettes in the magazine, or if you have removed the magazine and
950    inserted a different one.  As the slot of each Volume is updated, the
951    InChanger flag for that Volume will also be set, and any other Volumes
952    in the Pool that were last mounted on the same Storage device
953    will have their InChanger flag turned off.  This permits
954    Bacula to know what magazine (tape holder) is currently in the
955    autochanger.
956
957    If you do not have barcodes, you can accomplish the same thing in
958    version 1.33 and later by using the {\bf update slots scan} command.
959    The {\bf scan} keyword tells Bacula to physically mount each tape and to
960    read its VolumeName.
961
962    For Pool {\bf update pool}, Bacula will move the Volume record from its
963    existing pool to the pool specified.
964
965    For {\bf Volume from Pool} and {\bf All Volumes from Pool}, the
966    following values are updated from the Pool record: Recycle,
967    VolRetention, VolUseDuration, MaxVolJobs, MaxVolFiles, and MaxVolBytes.
968
969    The full form of the update command with all command line arguments is:
970
971 \footnotesize
972 \begin{verbatim}
973        update volume=xxx pool=yyy slots volstatus=xxx VolRetention=ddd
974          VolUse=ddd MaxVolJobs=nnn MaxVolBytes=nnn Recycle=yes|no
975          slot=nnn
976       
977 \end{verbatim}
978 \normalsize
979
980 \item [use]
981    \index[console]{use }
982    This command allows you to specify which Catalog  database to use. Normally,
983 you will be using only one database so  this will be done automatically. In
984 the case that you are using  more than one database, you can use this command
985 to switch from  one to another.  
986
987 use \lt{}database-name\gt{} 
988
989 \item [var]
990    \label{var}
991    \index[console]{var name }
992    This command takes a string or quoted string and  does variable expansion on
993    it the same way variable expansion  is done on the {\bf LabelFormat} string.
994    Thus, for the  most part, you can test your LabelFormat strings. The
995    difference  between the {\bf var} command and the actual LabelFormat process 
996    is that during the var command, no job is running so "dummy"  values are
997    used in place of Job specific variables. Generally,  however, you will get a
998    good idea of what is going to happen  in the real case.  
999
1000 \item [version]
1001    \index[console]{version }
1002    The command prints the Director's version.  
1003
1004 \item [quit]
1005    \index[console]{quit }
1006    This command terminates the console program. The  console program sends the
1007 {\bf quit} request to the Director  and waits for acknowledgment. If the
1008 Director is busy doing  a previous command for you that has not terminated, it
1009 may  take some time. You may quit immediately by issuing the  {\bf .quit}
1010 command (i.e. quit preceded by a period).  
1011
1012 \item [query]
1013    \index[console]{query }
1014    This command reads a predefined SQL query from  the query file (the name and
1015    location of the  query file is defined with the QueryFile resource record in 
1016    the Director's configuration file). You are prompted to select  a query from
1017    the file, and possibly enter one or more parameters,  then the command is
1018    submitted to the Catalog database SQL engine.  
1019
1020 The following queries are currently available (version 1.24):  
1021
1022 \footnotesize
1023 \begin{verbatim}
1024 Available queries:
1025   1: List Job totals:
1026   2: List where a file is saved:
1027   3: List where the most recent copies of a file are saved:
1028   4: List total files/bytes by Job:
1029   5: List total files/bytes by Volume:
1030   6: List last 20 Full Backups for a Client:
1031   7: List Volumes used by selected JobId:
1032   8: List Volumes to Restore All Files:
1033   9: List where a File is saved:
1034 Choose a query (1-9):
1035       
1036 \end{verbatim}
1037 \normalsize
1038
1039 \item [exit]
1040    \index[console]{exit }
1041    This command terminates the console program.  
1042
1043 \item [wait]
1044    \index[console]{wait }
1045    The wait command causes the Director to pause  until there are no jobs
1046 running. This command is useful in  a batch situation such as regression
1047 testing where you  wish to start a job and wait until that job completes 
1048 before continuing. 
1049 \end{description}
1050
1051 \label{dotcommands}
1052
1053 \subsection*{Special dot Commands}
1054 \index[general]{Commands!Special dot }
1055 \index[general]{Special dot Commands }
1056 \addcontentsline{toc}{subsection}{Special dot Commands}
1057
1058 There is a list of commands that are prefixed with a period (.). These
1059 commands are intended to be used either by batch programs or graphical user
1060 interface front-ends. They are not normally used by interactive users. Once
1061 GUI development begins, this list will be considerably expanded. The following
1062 is the list of dot commands: 
1063
1064 \footnotesize
1065 \begin{verbatim}
1066 .backups job=xxx      list backups for specified job
1067 .defaults client=xxx fileset=yyy  list defaults for specified client
1068 .die                  cause the Director to segment fault (for debugging)
1069 .dir                  when in tree mode prints the equivalent to the dir command,
1070                         but with fields separated by commas rather than spaces.
1071 .jobs                 list all job names
1072 .levels               list all levels
1073 .filesets             list all fileset names
1074 .clients              list all client names
1075 .pools                list all pool names
1076 .types                list job types
1077 .msgs                 return any queued messages
1078 .messages             get quick messages
1079 .help                 help command output
1080 .quit                 quit
1081 .status               get status output
1082 .exit                 quit
1083 \end{verbatim}
1084 \normalsize
1085
1086 \label{atcommands}
1087
1088 \subsection*{Special At (@) Commands}
1089 \index[general]{Commands!Special At @ }
1090 \index[general]{Special At (@) Commands }
1091 \addcontentsline{toc}{subsection}{Special At (@) Commands}
1092
1093 Normally, all commands entered to the Console program are immediately
1094 forwarded to the Director, which may be on another machine, to be executed.
1095 However, there is a small list of {\bf at} commands, all beginning with an at
1096 character (@), that will not be sent to the Director, but rather interpreted
1097 by the Console program directly. Note, these commands are implemented only in
1098 the tty console program and not in the GNOME Console. These commands are: 
1099
1100 \begin{description}
1101
1102 \item [@input \lt{}filename\gt{}]
1103    \index[console]{@input \lt{}filename\gt{} }
1104    Read and execute the commands  contained in the file specified.  
1105
1106 \item [@output \lt{}filename\gt{} w/a]
1107    \index[console]{@output \lt{}filename\gt{} w/a }
1108    Send all following output to the  filename specified either overwriting the
1109 file (w) or appending to  the file (a). To redirect the output to the
1110 terminal, simply enter  {\bf @output} without a filename specification.
1111 WARNING: be careful  not to overwrite a valid file. A typical example during a
1112 regression  test might be:  
1113
1114 \footnotesize
1115 \begin{verbatim}
1116     @output /dev/null
1117     commands ...
1118     @output
1119     
1120 \end{verbatim}
1121 \normalsize
1122
1123 \item [@tee \lt{}filename\gt{} w/a]
1124    \index[console]{@tee \lt{}filename\gt{} w/a }
1125    Send all subsequent output to  both the specified file and the terminal. It is
1126    turned off by  specifying {\bf @tee} or {\bf @output} without a filename.  
1127
1128 \item [@sleep \lt{}seconds\gt{}]
1129    \index[console]{@sleep \lt{}seconds\gt{} }
1130    Sleep the specified number of seconds.  
1131
1132 \item [@time]
1133    \index[console]{@time }
1134    Print the current time and date.  
1135
1136 \item [@version]
1137    \index[console]{@version }
1138    Print the console's version.  
1139
1140 \item [@quit]
1141    \index[console]{@quit }
1142    quit  
1143
1144 \item [@exit]
1145    \index[console]{@exit }
1146    quit  
1147
1148 \item [@\# anything]
1149    \index[console]{anything }
1150    Comment 
1151 \end{description}
1152
1153 \label{scripting}
1154
1155 \subsection*{Running the Console Program from a Shell Script}
1156 \index[general]{Script!Running the Console Program from a Shell }
1157 \index[general]{Running the Console Program from a Shell Script }
1158 \addcontentsline{toc}{subsection}{Running the Console Program from a Shell
1159 Script}
1160
1161 You can automate many Console tasks by running the console program from a
1162 shell script. For example, if you have created a file containing the following
1163 commands: 
1164
1165 \footnotesize
1166 \begin{verbatim}
1167  ./bconsole -c ./bconsole.conf <<END_OF_DATA
1168  unmount storage=DDS-4
1169  quit
1170  END_OF_DATA
1171 \end{verbatim}
1172 \normalsize
1173
1174 when that file is executed, it will unmount the current DDS-4 storage device.
1175 You might want to run this command during a Job by using the {\bf
1176 RunBeforeJob} or {\bf RunAfterJob} records. 
1177
1178 It is also possible to run the Console program from file input where the file
1179 contains the commands as follows: 
1180
1181 \footnotesize
1182 \begin{verbatim}
1183 ./bconsole -c ./bconsole.conf <filename
1184 \end{verbatim}
1185 \normalsize
1186
1187 where the file named {\bf filename} contains any set of console commands. 
1188
1189 As a real example, the following script is part of the Bacula regression
1190 tests. It labels a volume (a disk volume), runs a backup, then does a restore
1191 of the files saved. 
1192
1193 \footnotesize
1194 \begin{verbatim}
1195 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
1196 @output /dev/null
1197 messages
1198 @output /tmp/log1.out
1199 label volume=TestVolume001
1200 run job=Client1 yes
1201 wait
1202 messages
1203 @#
1204 @# now do a restore
1205 @#
1206 @output /tmp/log2.out
1207 restore current all
1208 yes
1209 wait
1210 messages
1211 @output
1212 quit
1213 END_OF_DATA
1214 \end{verbatim}
1215 \normalsize
1216
1217 The output from the backup is directed to /tmp/log1.out and the output from
1218 the restore is directed to /tmp/log2.out. To ensure that the backup and
1219 restore ran correctly, the output files are checked with: 
1220
1221 \footnotesize
1222 \begin{verbatim}
1223 grep "^Termination: *Backup OK" /tmp/log1.out
1224 backupstat=$?
1225 grep "^Termination: *Restore OK" /tmp/log2.out
1226 restorestat=$?
1227 \end{verbatim}
1228 \normalsize
1229
1230 \subsection*{Adding Volumes to a Pool}
1231 \index[general]{Adding Volumes to a Pool }
1232 \index[general]{Pool!Adding Volumes to a }
1233 \addcontentsline{toc}{subsection}{Adding Volumes to a Pool}
1234
1235 If you have used the {\bf label} command to label a Volume, it will be
1236 automatically added to the Pool, and you will not need to add any media to the
1237 pool. 
1238
1239 Alternatively, you may choose to add a number of Volumes to the pool without
1240 labeling them. At a later time when the Volume is requested by {\bf Bacula}
1241 you will need to label it. 
1242
1243 Before adding a volume, you must know the following information: 
1244
1245 \begin{enumerate}
1246 \item The name of the Pool (normally "Default")  
1247 \item The Media Type as specified in the Storage Resource  in the Director's
1248    configuration file (e.g. "DLT8000")  
1249 \item The number and names of the Volumes you wish to create. 
1250 \end{enumerate}
1251
1252 For example, to add media to a Pool, you would issue the following commands to
1253 the console program: 
1254
1255 \footnotesize
1256 \begin{verbatim}
1257 *add
1258 Enter name of Pool to add Volumes to: Default
1259 Enter the Media Type: DLT8000
1260 Enter number of Media volumes to create. Max=1000: 10
1261 Enter base volume name: Save
1262 Enter the starting number: 1
1263 10 Volumes created in pool Default
1264 *
1265 \end{verbatim}
1266 \normalsize
1267
1268 To see what you have added, enter: 
1269
1270 \footnotesize
1271 \begin{verbatim}
1272 *list media pool=Default
1273 +-------+----------+---------+---------+-------+------------------+
1274 | MedId | VolumeNa | MediaTyp| VolStat | Bytes | LastWritten      |
1275 +-------+----------+---------+---------+-------+------------------+
1276 |    11 | Save0001 | DLT8000 | Append  |     0 | 0000-00-00 00:00 |
1277 |    12 | Save0002 | DLT8000 | Append  |     0 | 0000-00-00 00:00 |
1278 |    13 | Save0003 | DLT8000 | Append  |     0 | 0000-00-00 00:00 |
1279 |    14 | Save0004 | DLT8000 | Append  |     0 | 0000-00-00 00:00 |
1280 |    15 | Save0005 | DLT8000 | Append  |     0 | 0000-00-00 00:00 |
1281 |    16 | Save0006 | DLT8000 | Append  |     0 | 0000-00-00 00:00 |
1282 |    17 | Save0007 | DLT8000 | Append  |     0 | 0000-00-00 00:00 |
1283 |    18 | Save0008 | DLT8000 | Append  |     0 | 0000-00-00 00:00 |
1284 |    19 | Save0009 | DLT8000 | Append  |     0 | 0000-00-00 00:00 |
1285 |    20 | Save0010 | DLT8000 | Append  |     0 | 0000-00-00 00:00 |
1286 +-------+----------+---------+---------+-------+------------------+
1287 *
1288 \end{verbatim}
1289 \normalsize
1290
1291 Notice that the console program automatically appended a number to the base
1292 Volume name that you specify (Save in this case). If you don't want it to
1293 append a number, you can simply answer 0 (zero) to the question "Enter number
1294 of Media volumes to create. Max=1000:", and in this case, it will create a
1295 single Volume with the exact name you specify.