Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > df754e4e6f7f5fc8ab9d6ed8559f3e3d > files > 298

bacula-docs-5.0.3-19.fc16.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2008 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Volume Utility Tools</TITLE>
<META NAME="description" CONTENT="Volume Utility Tools">
<META NAME="keywords" CONTENT="utility">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="utility.css">

<LINK REL="next" HREF="Bacula_RPM_Packaging_FAQ.html">
<LINK REL="previous" HREF="Contents.html">
<LINK REL="up" HREF="Bacula_Utility_Programs.html">
<LINK REL="next" HREF="Bacula_RPM_Packaging_FAQ.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html110"
  HREF="Bacula_RPM_Packaging_FAQ.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html104"
  HREF="Bacula_Utility_Programs.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html98"
  HREF="Contents.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html106"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html108"
  HREF="GNU_Free_Documentation_Lice.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html111"
  HREF="Bacula_RPM_Packaging_FAQ.html">Bacula RPM Packaging FAQ</A>
<B> Up:</B> <A NAME="tex2html105"
  HREF="Bacula_Utility_Programs.html">Bacula Utility Programs</A>
<B> Previous:</B> <A NAME="tex2html99"
  HREF="Contents.html">Contents</A>
 &nbsp; <B>  <A NAME="tex2html107"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html109"
  HREF="GNU_Free_Documentation_Lice.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL>
<LI><A NAME="tex2html112"
  HREF="Volume_Utility_Tools.html#SECTION00210000000000000000">Specifying the Configuration File</A>
<LI><A NAME="tex2html113"
  HREF="Volume_Utility_Tools.html#SECTION00220000000000000000">Specifying a Device Name For a Tape</A>
<LI><A NAME="tex2html114"
  HREF="Volume_Utility_Tools.html#SECTION00230000000000000000">Specifying a Device Name For a File</A>
<LI><A NAME="tex2html115"
  HREF="Volume_Utility_Tools.html#SECTION00240000000000000000">Specifying Volumes</A>
<LI><A NAME="tex2html116"
  HREF="Volume_Utility_Tools.html#SECTION00250000000000000000">bls</A>
<UL>
<LI><A NAME="tex2html117"
  HREF="Volume_Utility_Tools.html#SECTION00251000000000000000">Listing Jobs</A>
<LI><A NAME="tex2html118"
  HREF="Volume_Utility_Tools.html#SECTION00252000000000000000">Listing Blocks</A>
</UL>
<BR>
<LI><A NAME="tex2html119"
  HREF="Volume_Utility_Tools.html#SECTION00260000000000000000">bextract</A>
<UL>
<LI><A NAME="tex2html120"
  HREF="Volume_Utility_Tools.html#SECTION00261000000000000000">Extracting with Include or Exclude Lists</A>
<LI><A NAME="tex2html121"
  HREF="Volume_Utility_Tools.html#SECTION00262000000000000000">Extracting With a Bootstrap File</A>
<LI><A NAME="tex2html122"
  HREF="Volume_Utility_Tools.html#SECTION00263000000000000000">Extracting From Multiple Volumes</A>
</UL>
<BR>
<LI><A NAME="tex2html123"
  HREF="Volume_Utility_Tools.html#SECTION00270000000000000000">bscan</A>
<UL>
<LI><A NAME="tex2html124"
  HREF="Volume_Utility_Tools.html#SECTION00271000000000000000">Using bscan to Compare a Volume to an existing Catalog</A>
<LI><A NAME="tex2html125"
  HREF="Volume_Utility_Tools.html#SECTION00272000000000000000">Using bscan to Recreate a Catalog from a Volume</A>
<LI><A NAME="tex2html126"
  HREF="Volume_Utility_Tools.html#SECTION00273000000000000000">Using bscan to Correct the Volume File Count</A>
<LI><A NAME="tex2html127"
  HREF="Volume_Utility_Tools.html#SECTION00274000000000000000">After bscan</A>
</UL>
<BR>
<LI><A NAME="tex2html128"
  HREF="Volume_Utility_Tools.html#SECTION00280000000000000000">bcopy</A>
<UL>
<LI><A NAME="tex2html129"
  HREF="Volume_Utility_Tools.html#SECTION00281000000000000000">bcopy Command Options</A>
</UL>
<BR>
<LI><A NAME="tex2html130"
  HREF="Volume_Utility_Tools.html#SECTION00290000000000000000">btape</A>
<UL>
<LI><A NAME="tex2html131"
  HREF="Volume_Utility_Tools.html#SECTION00291000000000000000">Using btape to Verify your Tape Drive</A>
<LI><A NAME="tex2html132"
  HREF="Volume_Utility_Tools.html#SECTION00292000000000000000">btape Commands</A>
<UL>
<LI><A NAME="tex2html133"
  HREF="Volume_Utility_Tools.html#SECTION00292100000000000000">Testing your Tape Drive</A>
</UL>
</UL>
<BR>
<LI><A NAME="tex2html134"
  HREF="Volume_Utility_Tools.html#SECTION002100000000000000000">Other Programs</A>
<LI><A NAME="tex2html135"
  HREF="Volume_Utility_Tools.html#SECTION002110000000000000000">bsmtp</A>
<LI><A NAME="tex2html136"
  HREF="Volume_Utility_Tools.html#SECTION002120000000000000000">dbcheck</A>
<LI><A NAME="tex2html137"
  HREF="Volume_Utility_Tools.html#SECTION002130000000000000000">bregex</A>
<LI><A NAME="tex2html138"
  HREF="Volume_Utility_Tools.html#SECTION002140000000000000000">bwild</A>
<LI><A NAME="tex2html139"
  HREF="Volume_Utility_Tools.html#SECTION002150000000000000000">testfind</A>
<LI><A NAME="tex2html140"
  HREF="Volume_Utility_Tools.html#SECTION002160000000000000000">bimagemgr</A>
<UL>
<LI><A NAME="tex2html141"
  HREF="Volume_Utility_Tools.html#SECTION002161000000000000000">bimagemgr installation</A>
<LI><A NAME="tex2html142"
  HREF="Volume_Utility_Tools.html#SECTION002162000000000000000">bimagemgr usage</A>
</UL></UL>
<!--End of Table of Child-Links-->
<HR>

<H1><A NAME="SECTION00200000000000000000"></A>
<A NAME="_UtilityChapter"></A>
<BR>
Volume Utility Tools
</H1>
<A NAME="66"></A>
<A NAME="67"></A>

<P>
This document describes the utility programs written to aid Bacula users and
developers in dealing with Volumes external to Bacula. 

<P>

<H1><A NAME="SECTION00210000000000000000">
Specifying the Configuration File</A>
</H1>
<A NAME="69"></A>

<P>
Starting with version 1.27, each of the following programs requires a valid
Storage daemon configuration file (actually, the only part of the
configuration file that these programs need is the <B>Device</B> resource
definitions). This permits the programs to find the configuration parameters
for your archive device (generally a tape drive). By default, they read <B>bacula-sd.conf</B> in the current directory, but you may specify a different
configuration file using the <B>-c</B> option. 

<P>

<H1><A NAME="SECTION00220000000000000000">
Specifying a Device Name For a Tape</A>
</H1>
<A NAME="74"></A>
<A NAME="75"></A>

<P>
Each of these programs require a <B>device-name</B> where the Volume can be
found. In the case of a tape, this is the physical device name such as <B>/dev/nst0</B> or <B>/dev/rmt/0ubn</B> depending on your system. For the program to
work, it must find the identical name in the Device resource of the
configuration file. See below for specifying Volume names. 

<P>
Please note that if you have Bacula running and you ant to use
one of these programs, you will either need to stop the Storage daemon, or
<B>unmount</B> any tape drive you want to use, otherwise the drive
will <B>busy</B> because Bacula is using it.

<P>

<H1><A NAME="SECTION00230000000000000000">
Specifying a Device Name For a File</A>
</H1>
<A NAME="82"></A>
<A NAME="83"></A>

<P>
If you are attempting to read or write an archive file rather than a tape, the
<B>device-name</B> should be the full path to the archive location including
the filename. The filename (last part of the specification) will be stripped
and used as the Volume name, and the path (first part before the filename)
must have the same entry in the configuration file. So, the path is equivalent
to the archive device name, and the filename is equivalent to the volume name.

<P>

<H1><A NAME="SECTION00240000000000000000">
Specifying Volumes</A>
</H1>
<A NAME="86"></A>
<A NAME="87"></A>

<P>
In general, you must specify the Volume name to each of the programs below
(with the exception of <B>btape</B>). The best method to do so is to specify a
<B>bootstrap</B> file on the command line with the <B>-b</B> option. As part of
the bootstrap file, you will then specify the Volume name or Volume names if
more than one volume is needed. For example, suppose you want to read tapes
<B>tape1</B> and <B>tape2</B>. First construct a <B>bootstrap</B> file named say,
<B>list.bsr</B> which contains: 

<P>
<PRE>
Volume=test1|test2
</PRE>
<P>
where each Volume is separated by a vertical bar. Then simply use: 

<P>
<PRE>
./bls -b list.bsr /dev/nst0
</PRE>
<P>
In the case of Bacula Volumes that are on files, you may simply append volumes
as follows: 

<P>
<PRE>
./bls /tmp/test1\|test2
</PRE>
<P>
where the backslash (&#92;) was necessary as a shell escape to
permit entering the vertical bar (|). 

<P>
And finally, if you feel that specifying a Volume name is a bit complicated
with a bootstrap file, you can use the <B>-V</B> option (on all programs except
<B>bcopy</B>) to specify one or more Volume names separated by the vertical bar
(|). For example, 

<P>
<PRE>
./bls -V Vol001 /dev/nst0
</PRE>
<P>
You may also specify an asterisk (*) to indicate that the program should
accept any volume. For example: 

<P>
<PRE>
./bls -V* /dev/nst0
</PRE>
<P>

<H1><A NAME="SECTION00250000000000000000"></A>
<A NAME="bls"></A>
<BR>
bls
</H1>
<A NAME="110"></A>
<A NAME="111"></A>

<P>
<B>bls</B> can be used to do an <B>ls</B> type listing of a <B>Bacula</B> tape or
file. It is called: 

<P>
<PRE>
Usage: bls [options] &lt;device-name&gt;
       -b &lt;file&gt;       specify a bootstrap file
       -c &lt;file&gt;       specify a config file
       -d &lt;level&gt;      specify debug level
       -e &lt;file&gt;       exclude list
       -i &lt;file&gt;       include list
       -j              list jobs
       -k              list blocks
    (no j or k option) list saved files
       -L              dump label
       -p              proceed inspite of errors
       -v              be verbose
       -V              specify Volume names (separated by |)
       -?              print this message
</PRE>
<P>
For example, to list the contents of a tape: 

<P>
<PRE>
./bls -V Volume-name /dev/nst0
</PRE>
<P>
Or to list the contents of a file: 

<P>
<PRE>
./bls /tmp/Volume-name
or
./bls -V Volume-name /tmp
</PRE>
<P>
Note that, in the case of a file, the Volume name becomes the filename, so in
the above example, you will replace the <B>xxx</B> with the name of the volume
(file) you wrote. 

<P>
Normally if no options are specified, <B>bls</B> will produce the equivalent
output to the <B>ls -l</B> command for each file on the tape. Using other
options listed above, it is possible to display only the Job records, only the
tape blocks, etc. For example: 

<P>
<PRE>
 
./bls /tmp/File002
bls: butil.c:148 Using device: /tmp
drwxrwxr-x   3 k  k  4096 02-10-19 21:08  /home/kern/bacula/k/src/dird/
drwxrwxr-x   2 k  k  4096 02-10-10 18:59  /home/kern/bacula/k/src/dird/CVS/
-rw-rw-r--   1 k  k    54 02-07-06 18:02  /home/kern/bacula/k/src/dird/CVS/Root
-rw-rw-r--   1 k  k    16 02-07-06 18:02  /home/kern/bacula/k/src/dird/CVS/Repository
-rw-rw-r--   1 k  k  1783 02-10-10 18:59  /home/kern/bacula/k/src/dird/CVS/Entries
-rw-rw-r--   1 k  k 97506 02-10-18 21:07  /home/kern/bacula/k/src/dird/Makefile
-rw-r--r--   1 k  k  3513 02-10-18 21:02  /home/kern/bacula/k/src/dird/Makefile.in
-rw-rw-r--   1 k  k  4669 02-07-06 18:02  /home/kern/bacula/k/src/dird/README-config
-rw-r--r--   1 k  k  4391 02-09-14 16:51  /home/kern/bacula/k/src/dird/authenticate.c
-rw-r--r--   1 k  k  3609 02-07-07 16:41  /home/kern/bacula/k/src/dird/autoprune.c
-rw-rw-r--   1 k  k  4418 02-10-18 21:03  /home/kern/bacula/k/src/dird/bacula-dir.conf
...
-rw-rw-r--   1 k  k    83 02-08-31 19:19  /home/kern/bacula/k/src/dird/.cvsignore
bls: Got EOF on device /tmp
84 files found.
</PRE>
<P>

<H2><A NAME="SECTION00251000000000000000">
Listing Jobs</A>
</H2>
<A NAME="127"></A>
<A NAME="128"></A>

<P>
If you are listing a Volume to determine what Jobs to restore, normally the
<B>-j</B> option provides you with most of what you will need as long as you
don't have multiple clients. For example, 

<P>
<PRE>
./bls -j -V Test1 -c stored.conf DDS-4
bls: butil.c:258 Using device: "DDS-4" for reading.
11-Jul 11:54 bls: Ready to read from volume "Test1" on device "DDS-4" (/dev/nst0).
Volume Record: File:blk=0:1 SessId=4 SessTime=1121074625 JobId=0 DataLen=165
Begin Job Session Record: File:blk=0:2 SessId=4 SessTime=1121074625 JobId=1 Level=F Type=B
Begin Job Session Record: File:blk=0:3 SessId=5 SessTime=1121074625 JobId=5 Level=F Type=B
Begin Job Session Record: File:blk=0:6 SessId=3 SessTime=1121074625 JobId=2 Level=F Type=B
Begin Job Session Record: File:blk=0:13 SessId=2 SessTime=1121074625 JobId=4 Level=F Type=B
End Job Session Record: File:blk=0:99 SessId=3 SessTime=1121074625 JobId=2 Level=F Type=B
   Files=168 Bytes=1,732,978 Errors=0 Status=T
End Job Session Record: File:blk=0:101 SessId=2 SessTime=1121074625 JobId=4 Level=F Type=B
   Files=168 Bytes=1,732,978 Errors=0 Status=T
End Job Session Record: File:blk=0:108 SessId=5 SessTime=1121074625 JobId=5 Level=F Type=B
   Files=168 Bytes=1,732,978 Errors=0 Status=T
End Job Session Record: File:blk=0:109 SessId=4 SessTime=1121074625 JobId=1 Level=F Type=B
   Files=168 Bytes=1,732,978 Errors=0 Status=T
11-Jul 11:54 bls: End of Volume at file 1 on device "DDS-4" (/dev/nst0), Volume "Test1"
11-Jul 11:54 bls: End of all volumes.
</PRE>
<P>
shows a full save followed by two incremental saves. 

<P>
Adding the <B>-v</B> option will display virtually all information that is
available for each record: 

<P>

<H2><A NAME="SECTION00252000000000000000">
Listing Blocks</A>
</H2>
<A NAME="134"></A>
<A NAME="135"></A>

<P>
Normally, except for debugging purposes, you will not need to list Bacula
blocks (the "primitive" unit of Bacula data on the Volume). However, you can
do so with: 

<P>
<PRE>
./bls -k /tmp/File002
bls: butil.c:148 Using device: /tmp
Block: 1 size=64512
Block: 2 size=64512
...
Block: 65 size=64512
Block: 66 size=19195
bls: Got EOF on device /tmp
End of File on device
</PRE>
<P>
By adding the <B>-v</B> option, you can get more information, which can be
useful in knowing what sessions were written to the volume: 

<P>
<PRE>
./bls -k -v /tmp/File002
Volume Label:
Id                : Bacula 0.9 mortal
VerNo             : 10
VolName           : File002
PrevVolName       :
VolFile           : 0
LabelType         : VOL_LABEL
LabelSize         : 147
PoolName          : Default
MediaType         : File
PoolType          : Backup
HostName          :
Date label written: 2002-10-19 at 21:16
Block: 1 blen=64512 First rec FI=VOL_LABEL SessId=1 SessTim=1035062102 Strm=0 rlen=147
Block: 2 blen=64512 First rec FI=6 SessId=1 SessTim=1035062102 Strm=DATA rlen=4087
Block: 3 blen=64512 First rec FI=12 SessId=1 SessTim=1035062102 Strm=DATA rlen=5902
Block: 4 blen=64512 First rec FI=19 SessId=1 SessTim=1035062102 Strm=DATA rlen=28382
...
Block: 65 blen=64512 First rec FI=83 SessId=1 SessTim=1035062102 Strm=DATA rlen=1873
Block: 66 blen=19195 First rec FI=83 SessId=1 SessTim=1035062102 Strm=DATA rlen=2973
bls: Got EOF on device /tmp
End of File on device
</PRE>
<P>
Armed with the SessionId and the SessionTime, you can extract just about
anything. 

<P>
If you want to know even more, add a second <B>-v</B> to the command line to
get a dump of every record in every block. 

<P>
<PRE>
./bls -k -v -v /tmp/File002
bls: block.c:79 Dump block  80f8ad0: size=64512 BlkNum=1
               Hdrcksum=b1bdfd6d cksum=b1bdfd6d
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=VOL_LABEL Strm=0 len=147 p=80f8b40
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=SOS_LABEL Strm=-7 len=122 p=80f8be7
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=1 Strm=UATTR len=86 p=80f8c75
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=2 Strm=UATTR len=90 p=80f8cdf
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=3 Strm=UATTR len=92 p=80f8d4d
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=3 Strm=DATA len=54 p=80f8dbd
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=3 Strm=MD5 len=16 p=80f8e07
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=4 Strm=UATTR len=98 p=80f8e2b
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=4 Strm=DATA len=16 p=80f8ea1
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=4 Strm=MD5 len=16 p=80f8ec5
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=5 Strm=UATTR len=96 p=80f8ee9
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=5 Strm=DATA len=1783 p=80f8f5d
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=5 Strm=MD5 len=16 p=80f9668
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=6 Strm=UATTR len=95 p=80f968c
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=6 Strm=DATA len=32768 p=80f96ff
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=6 Strm=DATA len=32768 p=8101713
bls: block.c:79 Dump block  80f8ad0: size=64512 BlkNum=2
               Hdrcksum=9acc1e7f cksum=9acc1e7f
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=6 Strm=contDATA len=4087 p=80f8b40
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=6 Strm=DATA len=31970 p=80f9b4b
bls: block.c:92    Rec: VId=1 VT=1035062102 FI=6 Strm=MD5 len=16 p=8101841
...
</PRE>
<P>

<H1><A NAME="SECTION00260000000000000000"></A>
<A NAME="bextract"></A>
<BR>
bextract
</H1>
<A NAME="146"></A>
<A NAME="147"></A>

<P>
If you find yourself using <B>bextract</B>, you probably have done
something wrong. For example, if you are trying to recover a file
but are having problems, please see the Restoring When Things Go
Wrongdatabase_restore section of the Restore chapter of this manual.

<P>
Normally, you will restore files by running a <B>Restore</B> Job from the <B>Console</B> program. However, <B>bextract</B> can be used to extract a single file
or a list of files from a Bacula tape or file. In fact, <B>bextract</B> can be
a useful tool to restore files to an empty system assuming you are able to
boot, you have statically linked <B>bextract</B> and you have an appropriate
<B>bootstrap</B> file. 

<P>
Please note that some of the current limitations of bextract are:

<P>

<OL>
<LI>It cannot restore access control lists (ACL) that have been
      backed up along with the file data.
</LI>
<LI>It cannot restore encrypted files.
</LI>
<LI>The command line length is relatively limited,
      which means that you cannot enter a huge number of volumes.  If you need to
      enter more volumes than the command line supports, please use a bootstrap
      file (see below).
</LI>
</OL>

<P>
It is called: 

<P>
<PRE>
 
Usage: bextract [-d debug_level] &lt;device-name&gt; &lt;directory-to-store-files&gt;
       -b &lt;file&gt;       specify a bootstrap file
       -dnn            set debug level to nn
       -e &lt;file&gt;       exclude list
       -i &lt;file&gt;       include list
       -p              proceed inspite of I/O errors
       -V              specify Volume names (separated by |)
       -?              print this message
</PRE>
<P>
where <B>device-name</B> is the Archive Device (raw device name or full
filename) of the device to be read, and <B>directory-to-store-files</B> is a
path prefix to prepend to all the files restored. 

<P>
NOTE: On Windows systems, if you specify a prefix of say d:/tmp, any file that
would have been restored to <B>c:/My Documents</B> will be restored to <B>d:/tmp/My Documents</B>. That is, the original drive specification will be
stripped. If no prefix is specified, the file will be restored to the original
drive. 

<P>

<H2><A NAME="SECTION00261000000000000000">
Extracting with Include or Exclude Lists</A>
</H2>
<A NAME="166"></A>
<A NAME="167"></A>

<P>
Using the <B>-e</B> option, you can specify a file containing a list of files
to be excluded. Wildcards can be used in the exclusion list. This option will
normally be used in conjunction with the <B>-i</B> option (see below). Both the
<B>-e</B> and the <B>-i</B> options may be specified at the same time as the
<B>-b</B> option. The bootstrap filters will be applied first, then the include
list, then the exclude list. 

<P>
Likewise, and probably more importantly, with the <B>-i</B> option, you can
specify a file that contains a list (one file per line) of files and
directories to include to be restored. The list must contain the full filename
with the path. If you specify a path name only, all files and subdirectories
of that path will be restored. If you specify a line containing only the
filename (e.g. <B>my-file.txt</B>) it probably will not be extracted because
you have not specified the full path. 

<P>
For example, if the file <B>include-list</B> contains: 

<P>
<PRE>
/home/kern/bacula
/usr/local/bin
</PRE>
<P>
Then the command: 

<P>
<PRE>
./bextract -i include-list -V Volume /dev/nst0 /tmp
</PRE>
<P>
will restore from the Bacula archive <B>/dev/nst0</B> all files and directories
in the backup from <B>/home/kern/bacula</B> and from <B>/usr/local/bin</B>. The
restored files will be placed in a file of the original name under the
directory <B>/tmp</B> (i.e. /tmp/home/kern/bacula/... and
/tmp/usr/local/bin/...). 

<P>

<H2><A NAME="SECTION00262000000000000000">
Extracting With a Bootstrap File</A>
</H2>
<A NAME="185"></A>
<A NAME="186"></A>

<P>
The <B>-b</B> option is used to specify a <B>bootstrap</B> file containing the
information needed to restore precisely the files you want. Specifying a <B>bootstrap</B> file is optional but recommended because it gives you the most
control over which files will be restored. For more details on the <B>bootstrap</B> file, please see 
Restoring Files with the Bootstrap FileBootstrapChapter
chapter of this document. Note, you may also use a bootstrap file produced by
the <B>restore</B> command. For example: 

<P>
<PRE>
./bextract -b bootstrap-file /dev/nst0 /tmp
</PRE>
<P>
The bootstrap file allows detailed specification of what files you want
restored (extracted). You may specify a bootstrap file and include and/or
exclude files at the same time. The bootstrap conditions will first be
applied, and then each file record seen will be compared to the include and
exclude lists. 

<P>

<H2><A NAME="SECTION00263000000000000000">
Extracting From Multiple Volumes</A>
</H2>
<A NAME="197"></A>
<A NAME="198"></A>

<P>
If you wish to extract files that span several Volumes, you can specify the
Volume names in the bootstrap file or you may specify the Volume names on the
command line by separating them with a vertical bar. See the section above
under the <B>bls</B> program entitled <B>Listing Multiple Volumes</B> for more
information. The same techniques apply equally well to the <B>bextract</B>
program or read the BootstrapBootstrapChapter
chapter of this document.

<P>

<H1><A NAME="SECTION00270000000000000000"></A>
<A NAME="bscan"></A>
<BR>
bscan
</H1>
<A NAME="206"></A>
<A NAME="207"></A>

<P>
If you find yourself using this program, you have probably done something
wrong. For example, the best way to recover a lost or damaged Bacula
database is to reload the database by using the bootstrap file that
was written when you saved it (default bacula-dir.conf file).

<P>
The <B>bscan</B> program can be used to re-create a database (catalog)
records from the backup information written to one or more Volumes.  This
is normally needed only if one or more Volumes have been pruned or purged
from your catalog so that the records on the Volume are no longer in the
catalog, or for Volumes that you have archived.  Note, if you scan in
Volumes that were previously purged, you will be able to do restores from
those Volumes.  However, unless you modify the Job and File retention times
for the Jobs that were added by scanning, the next time you run any Job
with the same name, the records will be pruned again.  Since it takes a
long time to scan Volumes this can be very frustrating.

<P>
With some care, <B>bscan</B> can also be used to synchronize your existing
catalog with a Volume.  Although we have never seen a case of bscan
damaging a catalog, since bscan modifies your catalog, we recommend that
you do a simple ASCII backup of your database before running <B>bscan</B>
just to be sure.  See Compacting Your DatabaseCompactingMySQL for
the details of making a copy of your database.

<P>
<B>bscan</B> can also be useful in a disaster recovery situation, after the
loss of a hard disk, if you do not have a valid <B>bootstrap</B> file for
reloading your system, or if a Volume has been recycled but not overwritten,
you can use <B>bscan</B> to re-create your database, which can then be used to
<B>restore</B> your system or a file to its previous state. 

<P>
It is called: 

<P>
<PRE>
 
Usage: bscan [options] &lt;bacula-archive&gt;
       -b bootstrap   specify a bootstrap file
       -c &lt;file&gt;      specify configuration file
       -d &lt;nn&gt;        set debug level to nn
       -m             update media info in database
       -n &lt;name&gt;      specify the database name (default bacula)
       -u &lt;user&gt;      specify database user name (default bacula)
       -P &lt;password&gt;  specify database password (default none)
       -h &lt;host&gt;      specify database host (default NULL)
       -p             proceed inspite of I/O errors
       -r             list records
       -s             synchronize or store in database
       -v             verbose
       -V &lt;Volumes&gt;   specify Volume names (separated by |)
       -w &lt;dir&gt;       specify working directory (default from conf file)
       -?             print this message
</PRE>
<P>
If you are using MySQL or PostgreSQL, there is no need to supply a working
directory since in that case, bscan knows where the databases are. However, if
you have provided security on your database, you may need to supply either the
database name (<B>-b</B> option), the user name (<B>-u</B> option), and/or the
password (<B>-p</B>) options. 

<P>
NOTE: before <B>bscan</B> can work, it needs at least a bare bones valid
database.  If your database exists but some records are missing because
they were pruned, then you are all set. If your database was lost or 
destroyed, then you must first ensure that you have the SQL program running
(MySQL or PostgreSQL), then you must create the Bacula database (normally
named bacula), and you must create the Bacula tables using the scripts in
the <B>cats</B> directory.  This is explained in the
InstallationCreateDatabase chapter of the manual. Finally, before
scanning into an empty database, you must start and stop the Director with
the appropriate bacula-dir.conf file so that it can create the Client and
Storage records which are not stored on the Volumes.  Without these
records, scanning is unable to connect the Job records to the proper
client.

<P>
Forgetting for the moment the extra complications of a full rebuild of 
your catalog, let's suppose that you did a backup to Volumes "Vol001" 
and "Vol002", then sometime later all records of one or both those
Volumes were pruned or purged from the
database. By using <B>bscan</B> you can recreate the catalog entries for
those Volumes and then use the <B>restore</B> command in the Console to restore
whatever you want. A command something like: 

<P>
<PRE>
bscan -c bacula-sd.conf -v -V Vol001\|Vol002 /dev/nst0
</PRE>
<P>
will give you an idea of what is going to happen without changing
your catalog. Of course, you may need to change the path to the Storage
daemon's conf file, the Volume name, and your tape (or disk) device name. This
command must read the entire tape, so if it has a lot of data, it may take a
long time, and thus you might want to immediately use the command listed
below. Note, if you are writing to a disk file, replace the device name with
the path to the directory that contains the Volumes. This must correspond to
the Archive Device in the conf file. 

<P>
Then to actually write or store the records in the catalog, add the <B>-s</B>
option as follows: 

<P>
<PRE>
 bscan -s -m -c bacula-sd.conf -v -V Vol001\|Vol002 /dev/nst0
</PRE>
<P>
When writing to the database, if bscan finds existing records, it will
generally either update them if something is wrong or leave them alone. Thus
if the Volumes you are scanning are all or partially in the catalog already, no
harm will be done to that existing data. Any missing data will simply be
added. 

<P>
If you have multiple tapes, you should scan them with: 

<P>
<PRE>
 bscan -s -m -c bacula-sd.conf -v -V Vol001\|Vol002\|Vol003 /dev/nst0
</PRE>
<P>
Since there is a limit on the command line length (511 bytes) accepted
by <B>bscan</B>, if you have too many Volumes, you will need to manually
create a bootstrap file.  See the BootstrapBootstrapChapter
chapter of this manual for more details, in particular the section
entitled Bootstrap for bscanbscanBootstrap.

<P>
You should, always try to specify the tapes in the order they are written.
However, bscan can handle scanning tapes that are not sequential.  Any
incomplete records at the end of the tape will simply be ignored in that
case.  If you are simply repairing an existing catalog, this may be OK, but
if you are creating a new catalog from scratch, it will leave your database
in an incorrect state.  If you do not specify all necessary Volumes on a
single bscan command, bscan will not be able to correctly restore the
records that span two volumes.  In other words, it is much better to
specify two or three volumes on a single bscan command rather than run
bscan two or three times, each with a single volume.

<P>
Note, the restoration process using bscan is not identical to the original
creation of the catalog data. This is because certain data such as Client
records and other non-essential data such
as volume reads, volume mounts, etc is not stored on the Volume, and thus is
not restored by bscan. The results of bscanning are, however, perfectly valid,
and will permit restoration of any or all the files in the catalog using the
normal Bacula console commands.  If you are starting with an empty catalog
and expecting bscan to reconstruct it, you may be a bit disappointed, but
at a minimum, you must ensure that your bacula-dir.conf file is the same
as what it previously was - that is, it must contain all the appropriate
Client resources so that they will be recreated in your new database <B>before</B> running bscan. Normally when the Director starts, it will recreate
any missing Client records in the catalog.  Another problem you will have
is that even if the Volumes (Media records) are recreated in the database,
they will not have their autochanger status and slots properly set. As a
result, you will need to repair that by using the <B>update slots</B>
command.  There may be other considerations as well.  Rather than
bscanning, you should always attempt to recover you previous catalog
backup.

<P>

<H2><A NAME="SECTION00271000000000000000">
Using bscan to Compare a Volume to an existing Catalog</A>
</H2>
<A NAME="243"></A>
<A NAME="244"></A>

<P>
If you wish to compare the contents of a Volume to an existing catalog without
changing the catalog, you can safely do so if and only if you do <B>not</B>
specify either the <B>-m</B> or the <B>-s</B> options. However, at this time
(Bacula version 1.26), the comparison routines are not as good or as thorough
as they should be, so we don't particularly recommend this mode other than for
testing. 

<P>

<H2><A NAME="SECTION00272000000000000000">
Using bscan to Recreate a Catalog from a Volume</A>
</H2>
<A NAME="249"></A>
<A NAME="250"></A>

<P>
This is the mode for which <B>bscan</B> is most useful. You can either <B>bscan</B> into a freshly created catalog, or directly into your existing catalog
(after having made an ASCII copy as described above). Normally, you should
start with a freshly created catalog that contains no data. 

<P>
Starting with a single Volume named <B>TestVolume1</B>, you run a command such
as: 

<P>
<PRE>
./bscan -V TestVolume1 -v -s -m -c bacula-sd.conf /dev/nst0
</PRE>
<P>
If there is more than one volume, simply append it to the first one separating
it with a vertical bar. You may need to precede the vertical bar with a
forward slash escape the shell - e.g. <B>TestVolume1&#92;|TestVolume2</B>. The <B>-v</B> option was added for
verbose output (this can be omitted if desired). The <B>-s</B> option that
tells <B>bscan</B> to store information in the database. The physical device
name <B>/dev/nst0</B> is specified after all the options. 

<P>
For example, after having done a full backup of a directory, then two
incrementals, I reinitialized the SQLite database as described above, and
using the bootstrap.bsr file noted above, I entered the following command: 

<P>
<PRE>
./bscan -b bootstrap.bsr -v -s -c bacula-sd.conf /dev/nst0
</PRE>
<P>
which produced the following output: 

<P>
<PRE>
bscan: bscan.c:182 Using Database: bacula, User: bacula
bscan: bscan.c:673 Created Pool record for Pool: Default
bscan: bscan.c:271 Pool type "Backup" is OK.
bscan: bscan.c:632 Created Media record for Volume: TestVolume1
bscan: bscan.c:298 Media type "DDS-4" is OK.
bscan: bscan.c:307 VOL_LABEL: OK for Volume: TestVolume1
bscan: bscan.c:693 Created Client record for Client: Rufus
bscan: bscan.c:769 Created new JobId=1 record for original JobId=2
bscan: bscan.c:717 Created FileSet record "Kerns Files"
bscan: bscan.c:819 Updated Job termination record for new JobId=1
bscan: bscan.c:905 Created JobMedia record JobId 1, MediaId 1
bscan: Got EOF on device /dev/nst0
bscan: bscan.c:693 Created Client record for Client: Rufus
bscan: bscan.c:769 Created new JobId=2 record for original JobId=3
bscan: bscan.c:708 Fileset "Kerns Files" already exists.
bscan: bscan.c:819 Updated Job termination record for new JobId=2
bscan: bscan.c:905 Created JobMedia record JobId 2, MediaId 1
bscan: Got EOF on device /dev/nst0
bscan: bscan.c:693 Created Client record for Client: Rufus
bscan: bscan.c:769 Created new JobId=3 record for original JobId=4
bscan: bscan.c:708 Fileset "Kerns Files" already exists.
bscan: bscan.c:819 Updated Job termination record for new JobId=3
bscan: bscan.c:905 Created JobMedia record JobId 3, MediaId 1
bscan: Got EOF on device /dev/nst0
bscan: bscan.c:652 Updated Media record at end of Volume: TestVolume1
bscan: bscan.c:428 End of Volume. VolFiles=3 VolBlocks=57 VolBytes=10,027,437
</PRE>
<P>
The key points to note are that <B>bscan</B> prints a line when each major
record is created. Due to the volume of output, it does not print a line for
each file record unless you supply the <B>-v</B> option twice or more on the
command line. 

<P>
In the case of a Job record, the new JobId will not normally be the same as
the original Jobid. For example, for the first JobId above, the new JobId is
1, but the original JobId is 2. This is nothing to be concerned about as it is
the normal nature of databases. <B>bscan</B> will keep everything straight. 

<P>
Although <B>bscan</B> claims that it created a Client record for Client: Rufus
three times, it was actually only created the first time. This is normal. 

<P>
You will also notice that it read an end of file after each Job (Got EOF on
device ...). Finally the last line gives the total statistics for the bscan. 

<P>
If you had added a second <B>-v</B> option to the command line, Bacula would
have been even more verbose, dumping virtually all the details of each Job
record it encountered. 

<P>
Now if you start Bacula and enter a <B>list jobs</B> command to the console
program, you will get: 

<P>
<PRE>
+-------+----------+------------------+------+-----+----------+----------+---------+
| JobId | Name     | StartTime        | Type | Lvl | JobFiles | JobBytes | JobStat |
+-------+----------+------------------+------+-----+----------+----------+---------+
| 1     | kernsave | 2002-10-07 14:59 | B    | F   | 84       | 4180207  | T       |
| 2     | kernsave | 2002-10-07 15:00 | B    | I   | 15       | 2170314  | T       |
| 3     | kernsave | 2002-10-07 15:01 | B    | I   | 33       | 3662184  | T       |
+-------+----------+------------------+------+-----+----------+----------+---------+
</PRE>
<P>
which corresponds virtually identically with what the database contained
before it was re-initialized and restored with bscan. All the Jobs and Files
found on the tape are restored including most of the Media record. The Volume
(Media) records restored will be marked as <B>Full</B> so that they cannot be
rewritten without operator intervention. 

<P>
It should be noted that <B>bscan</B> cannot restore a database to the exact
condition it was in previously because a lot of the less important information
contained in the database is not saved to the tape. Nevertheless, the
reconstruction is sufficiently complete, that you can run <B>restore</B>
against it and get valid results. 

<P>
An interesting aspect of restoring a catalog backup using <B>bscan</B> is
that the backup was made while Bacula was running and writing to a tape. At
the point the backup of the catalog is made, the tape Bacula is writing to
will have say 10 files on it, but after the catalog backup is made, there
will be 11 files on the tape Bacula is writing.  This there is a difference
between what is contained in the backed up catalog and what is actually on
the tape.  If after restoring a catalog, you attempt to write on the same
tape that was used to backup the catalog, Bacula will detect the difference
in the number of files registered in the catalog compared to what is on the
tape, and will mark the tape in error.  

<P>
There are two solutions to this problem. The first is possibly the simplest
and is to mark the volume as Used before doing any backups.  The second is
to manually correct the number of files listed in the Media record of the
catalog.  This procedure is documented elsewhere in the manual and involves
using the <B>update volume</B> command in <B>bconsole</B>.

<P>

<H2><A NAME="SECTION00273000000000000000">
Using bscan to Correct the Volume File Count</A>
</H2>
<A NAME="281"></A>
<A NAME="282"></A>

<P>
If the Storage daemon crashes during a backup Job, the catalog will not be
properly updated for the Volume being used at the time of the crash. This
means that the Storage daemon will have written say 20 files on the tape, but
the catalog record for the Volume indicates only 19 files. 

<P>
Bacula refuses to write on a tape that contains a different number of files
from what is in the catalog. To correct this situation, you may run a <B>bscan</B> with the <B>-m</B> option (but <B>without</B> the <B>-s</B> option) to
update only the final Media record for the Volumes read. 

<P>

<H2><A NAME="SECTION00274000000000000000">
After bscan</A>
</H2>
<A NAME="288"></A>
<A NAME="289"></A>

<P>
If you use <B>bscan</B> to enter the contents of the Volume into an existing
catalog, you should be aware that the records you entered may be immediately
pruned during the next job, particularly if the Volume is very old or had been
previously purged. To avoid this, after running <B>bscan</B>, you can manually
set the volume status (VolStatus) to <B>Read-Only</B> by using the <B>update</B>
command in the catalog. This will allow you to restore from the volume without
having it immediately purged. When you have restored and backed up the data,
you can reset the VolStatus to <B>Used</B> and the Volume will be purged from
the catalog. 

<P>

<H1><A NAME="SECTION00280000000000000000"></A>
<A NAME="bcopy"></A>
<BR>
bcopy
</H1>
<A NAME="297"></A>
<A NAME="298"></A>

<P>
The <B>bcopy</B> program can be used to copy one <B>Bacula</B> archive file to
another. For example, you may copy a tape to a file, a file to a tape, a file
to a file, or a tape to a tape. For tape to tape, you will need two tape
drives. (a later version is planned that will buffer it to disk). In the
process of making the copy, no record of the information written to the new
Volume is stored in the catalog. This means that the new Volume, though it
contains valid backup data, cannot be accessed directly from existing catalog
entries. If you wish to be able to use the Volume with the Console restore
command, for example, you must first bscan the new Volume into the catalog. 

<P>

<H2><A NAME="SECTION00281000000000000000">
bcopy Command Options</A>
</H2>
<A NAME="302"></A>
<A NAME="303"></A>

<P>
<PRE>
Usage: bcopy [-d debug_level] &lt;input-archive&gt; &lt;output-archive&gt;
       -b bootstrap      specify a bootstrap file
       -c &lt;file&gt;         specify configuration file
       -dnn              set debug level to nn
       -i                specify input Volume names (separated by |)
       -o                specify output Volume names (separated by |)
       -p                proceed inspite of I/O errors
       -v                verbose
       -w dir            specify working directory (default /tmp)
       -?                print this message
</PRE>
<P>
By using a <B>bootstrap</B> file, you can copy parts of a Bacula archive file
to another archive. 

<P>
One of the objectives of this program is to be able to recover as much data as
possible from a damaged tape. However, the current version does not yet have
this feature. 

<P>
As this is a new program, any feedback on its use would be appreciated. In
addition, I only have a single tape drive, so I have never been able to test
this program with two tape drives. 

<P>

<H1><A NAME="SECTION00290000000000000000"></A>
<A NAME="btape"></A>
<BR>
btape
</H1>
<A NAME="309"></A>
<A NAME="310"></A>

<P>
This program permits a number of elementary tape operations via a tty command
interface. It works only with tapes and not with other kinds of Bacula
storage media (DVD, File, ...).  The <B>test</B> command, described below,
can be very useful for testing older tape drive compatibility problems.
Aside from initial testing of tape drive compatibility with <B>Bacula</B>,
<B>btape</B> will be mostly used by developers writing new tape drivers.

<P>
<B>btape</B> can be dangerous to use with existing <B>Bacula</B> tapes because
it will relabel a tape or write on the tape if so requested regardless that
the tape may contain valuable data, so please be careful and use it only on
blank tapes. 

<P>
To work properly, <B>btape</B> needs to read the Storage daemon's configuration
file. As a default, it will look for <B>bacula-sd.conf</B> in the current
directory. If your configuration file is elsewhere, please use the <B>-c</B>
option to specify where. 

<P>
The physical device name must be specified on the command line, and this
same device name must be present in the Storage daemon's configuration file
read by <B>btape</B> 

<P>
<PRE>
Usage: btape &lt;options&gt; &lt;device_name&gt;
       -b &lt;file&gt;   specify bootstrap file
       -c &lt;file&gt;   set configuration file to file
       -d &lt;nn&gt;     set debug level to nn
       -p          proceed inspite of I/O errors
       -s          turn off signals
       -v          be verbose
       -?          print this message.
</PRE>
<P>

<H2><A NAME="SECTION00291000000000000000">
Using btape to Verify your Tape Drive</A>
</H2>
<A NAME="323"></A>
<A NAME="324"></A>

<P>
An important reason for this program is to ensure that a Storage daemon
configuration file is defined so that Bacula will correctly read and write
tapes. 

<P>
It is highly recommended that you run the <B>test</B> command before running
your first Bacula job to ensure that the parameters you have defined for your
storage device (tape drive) will permit <B>Bacula</B> to function properly. You
only need to mount a blank tape, enter the command, and the output should be
reasonably self explanatory. Please see the 
Tape TestingTapeTestingChapter Chapter of this manual for
the details. 

<P>

<H2><A NAME="SECTION00292000000000000000">
btape Commands</A>
</H2>
<A NAME="330"></A>
<A NAME="331"></A>

<P>
The full list of commands are: 

<P>
<PRE>
  Command    Description
  =======    ===========
  autochanger test autochanger
  bsf        backspace file
  bsr        backspace record
  cap        list device capabilities
  clear      clear tape errors
  eod        go to end of Bacula data for append
  eom        go to the physical end of medium
  fill       fill tape, write onto second volume
  unfill     read filled tape
  fsf        forward space a file
  fsr        forward space a record
  help       print this command
  label      write a Bacula label to the tape
  load       load a tape
  quit       quit btape
  rawfill    use write() to fill tape
  readlabel  read and print the Bacula tape label
  rectest    test record handling functions
  rewind     rewind the tape
  scan       read() tape block by block to EOT and report
  scanblocks Bacula read block by block to EOT and report
  speed      report drive speed
  status     print tape status
  test       General test Bacula tape functions
  weof       write an EOF on the tape
  wr         write a single Bacula block
  rr         read a single record
  qfill      quick fill command
</PRE>
<P>
The most useful commands are: 

<P>

<UL>
<LI>test - test writing records and EOF marks and  reading them back.  
</LI>
<LI>fill - completely fill a volume with records, then  write a few records
   on a second volume, and finally,  both volumes will be read back. 
   This command writes blocks containing random data, so your drive will
   not be able to compress the data, and thus it is a good test of 
   the real physical capacity of your tapes.              
</LI>
<LI>readlabel - read and dump the label on a Bacula tape.  
</LI>
<LI>cap - list the device capabilities as defined in the  configuration
   file and as perceived by the Storage daemon. 
   
</LI>
</UL>

<P>
The <B>readlabel</B> command can be used to display the details of a Bacula
tape label. This can be useful if the physical tape label was lost or damaged.

<P>
In the event that you want to relabel a <B>Bacula</B>, you can simply use the
<B>label</B> command which will write over any existing label. However, please
note for labeling tapes, we recommend that you use the <B>label</B> command in
the <B>Console</B> program since it will never overwrite a valid Bacula tape. 

<P>

<H3><A NAME="SECTION00292100000000000000"></A>
<A NAME="sec:btapespeed"></A>
<BR>
Testing your Tape Drive
</H3>

<P>
To determine the best configuration of your tape drive, you can run the new
<TT>speed</TT> command available in the <TT>btape</TT> program.

<P>
This command can have the following arguments:
<DL COMPACT>
<DT><TT>file_size=n</TT></DT>
<DD>Specify the Maximum File Size for this test
  (between 1 and 5GB). This counter is in GB.
</DD>
<DT><TT>nb_file=n</TT></DT>
<DD>Specify the number of file to be written. The amount
  of data should be greater than your memory (<!-- MATH
 $file\_size*nb\_file$
 -->
<IMG
 WIDTH="130" HEIGHT="30" ALIGN="MIDDLE" BORDER="0"
 SRC="img2.png"
 ALT="$file\_size*nb\_file$">).
</DD>
<DT><TT>skip_zero</TT></DT>
<DD>This flag permits to skip tests with constant
  data.
</DD>
<DT><TT>skip_random</TT></DT>
<DD>This flag permits to skip tests with random
  data.
</DD>
<DT><TT>skip_raw</TT></DT>
<DD>This flag permits to skip tests with raw access.
</DD>
<DT><TT>skip_block</TT></DT>
<DD>This flag permits to skip tests with Bacula block
  access.
</DD>
</DL>

<P>
<PRE>
*speed file_size=3 skip_raw
btape.c:1078 Test with zero data and bacula block structure.
btape.c:956 Begin writing 3 files of 3.221 GB with blocks of 129024 bytes.
++++++++++++++++++++++++++++++++++++++++++
btape.c:604 Wrote 1 EOF to "Drive-0" (/dev/nst0)
btape.c:406 Volume bytes=3.221 GB. Write rate = 44.128 MB/s
...
btape.c:383 Total Volume bytes=9.664 GB. Total Write rate = 43.531 MB/s

btape.c:1090 Test with random data, should give the minimum throughput.
btape.c:956 Begin writing 3 files of 3.221 GB with blocks of 129024 bytes.
+++++++++++++++++++++++++++++++++++++++++++
btape.c:604 Wrote 1 EOF to "Drive-0" (/dev/nst0)
btape.c:406 Volume bytes=3.221 GB. Write rate = 7.271 MB/s
+++++++++++++++++++++++++++++++++++++++++++
...
btape.c:383 Total Volume bytes=9.664 GB. Total Write rate = 7.365 MB/s
</PRE>

<P>
When using compression, the random test will give your the minimum throughput
of your drive . The test using constant string will give you the maximum speed
of your hardware chain. (cpu, memory, scsi card, cable, drive, tape).

<P>
You can change the block size in the Storage Daemon configuration file.

<P>

<H1><A NAME="SECTION002100000000000000000">
Other Programs</A>
</H1>
<A NAME="356"></A>
<A NAME="357"></A>

<P>
The following programs are general utility programs and in general do not need
a configuration file nor a device name. 

<P>

<H1><A NAME="SECTION002110000000000000000"></A>
<A NAME="bsmtp"></A>
<BR>
bsmtp
</H1>
<A NAME="360"></A>
<A NAME="361"></A>

<P>
<B>bsmtp</B> is a simple mail transport program that permits more flexibility
than the standard mail programs typically found on Unix systems. It can even
be used on Windows machines. 

<P>
It is called: 

<P>
<PRE>
Usage: bsmtp [-f from] [-h mailhost] [-s subject] [-c copy] [recipient ...]
       -c          set the Cc: field
       -dnn        set debug level to nn
       -f          set the From: field
       -h          use mailhost:port as the bsmtp server
       -l          limit the lines accepted to nn
       -s          set the Subject: field
       -?          print this message.
</PRE>
<P>
If the <B>-f</B> option is not specified, <B>bsmtp</B> will use your userid. If
the option <B>-h</B> is not specified <B>bsmtp</B> will use the value in the environment
variable <B>bsmtpSERVER</B> or if there is none <B>localhost</B>. By default
port 25 is used. 

<P>
If a line count limit is set with the <B>-l</B> option, <B>bsmtp</B> will
not send an email with a body text exceeding that number of lines. This
is especially useful for large restore job reports where the list of
files restored might produce very long mails your mail-server would
refuse or crash. However, be aware that you will probably suppress the
job report and any error messages unless you check the log file written
by the Director (see the messages resource in this manual for details).

<P>
<B>recipients</B> is a space separated list of email recipients. 

<P>
The body of the email message is read from standard input. 

<P>
An example of the use of <B>bsmtp</B> would be to put the following statement
in the <B>Messages</B> resource of your <B>bacula-dir.conf</B> file. Note, these
commands should appear on a single line each. 

<P>
<PRE>
  mailcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f \"\(Bacula\) %r\"
                 -s \"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/home/bacula/bin/bsmtp -h mail.domain.com -f \"\(Bacula\) %r\"
                    -s \"Bacula: Intervention needed for %j\" %r"
</PRE>
<P>
Where you replace <B>/home/bacula/bin</B> with the path to your <B>Bacula</B>
binary directory, and you replace <B>mail.domain.com</B> with the fully
qualified name of your bsmtp (email) server, which normally listens on port
25. For more details on the substitution characters (e.g. %r) used in the
above line, please see the documentation of the 
 MailCommand in the Messages Resourcemailcommand
chapter of this manual. 

<P>
It is HIGHLY recommended that you test one or two cases by hand to make sure
that the <B>mailhost</B> that you specified is correct and that it will accept
your email requests. Since <B>bsmtp</B> always uses a TCP connection rather
than writing in the spool file, you may find that your <B>from</B> address is
being rejected because it does not contain a valid domain, or because your
message is caught in your spam filtering rules. Generally, you should specify
a fully qualified domain name in the <B>from</B> field, and depending on
whether your bsmtp gateway is Exim or Sendmail, you may need to modify the
syntax of the from part of the message. Please test. 

<P>
When running <B>bsmtp</B> by hand, you will need to terminate the message by
entering a ctl-d in column 1 of the last line. 

<P>
If you are getting incorrect dates (e.g. 1970) and you are
running with a non-English language setting, you might try adding
a LANG=''en_US'' immediately before the bsmtp call.

<P>
In general, <B>bsmtp</B> attempts to cleanup email addresses that you
specify in the from, copy, mailhost, and recipient fields, by adding
the necessary  and  characters around the address part.  However,
if you include a <B>display-name</B> (see RFC 5332), some SMTP servers
such as Exchange may not accept the message if the <B>display-name</B> is
also included in  and .  As mentioned above, you must test, and
if you run into this situation, you may manually add the  and 
to the Bacula <B>mailcommand</B> or <B>operatorcommand</B> and when
<B>bsmtp</B> is formatting an address if it already contains a  or
 character, it will leave the address unchanged.

<P>

<H1><A NAME="SECTION002120000000000000000"></A>
<A NAME="dbcheck"></A>
<BR>
dbcheck
</H1>
<A NAME="405"></A>
<A NAME="406"></A>
<B>dbcheck</B> is a simple program that will search for logical
inconsistencies in the Bacula tables in your database, and optionally fix them. 
It is a database maintenance routine, in the sense that it can
detect and remove unused rows, but it is not a database repair
routine. To repair a database, see the tools furnished by the
database vendor.  Normally dbcheck should never need to be run,
but if Bacula has crashed or you have a lot of Clients, Pools, or
Jobs that you have removed, it could be useful.  

<P>
The <B>dbcheck</B> program can be found in
the <B>bacula-source/src/tools</B> directory of the source
distribution. Though it is built with the make process, it is not normally
"installed". 

<P>
It is called: 

<P>
<PRE>
Usage: dbcheck [-c config ] [-B] [-C catalog name] [-d debug_level] 
  &lt;working-directory&gt; &lt;bacula-database&gt; &lt;user&gt; &lt;password&gt; [&lt;dbhost&gt;] [&lt;dbport&gt;]
       -b              batch mode
       -C              catalog name in the director conf file
       -c              Director conf filename
       -B              print catalog configuration and exit
       -d &lt;nn&gt;         set debug level to &lt;nn&gt;
       -dt             print timestamp in debug output
       -f              fix inconsistencies
       -v              verbose
       -?              print this message
</PRE>
<P>
If the <B>-B</B> option is specified, dbcheck will print out catalog
information in a simple text based format. This is useful to backup it in a
secure way.

<P>
<PRE>
 $ dbcheck -B 
 catalog=MyCatalog
 db_type=SQLite
 db_name=regress
 db_driver=
 db_user=regress
 db_password=
 db_address=
 db_port=0
 db_socket=
</PRE> 
<P>
If the <B>-c</B> option is given with the Director's conf file, there is no
need to enter any of the command line arguments, in particular the working
directory as dbcheck will read them from the file. 

<P>
If the <B>-f</B> option is specified, <B>dbcheck</B> will repair (<B>fix</B>) the
inconsistencies it finds. Otherwise, it will report only. 

<P>
If the <B>-b</B> option is specified, <B>dbcheck</B> will run in batch mode, and
it will proceed to examine and fix (if -f is set) all programmed inconsistency
checks. If the <B>-b</B> option is not specified, <B>dbcheck</B> will enter
interactive mode and prompt with the following: 

<P>
<PRE>
Hello, this is the database check/correct program.
Please select the function you want to perform.
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Repair bad Filename records
     4) Repair bad Path records
     5) Eliminate duplicate Filename records
     6) Eliminate duplicate Path records
     7) Eliminate orphaned Jobmedia records
     8) Eliminate orphaned File records
     9) Eliminate orphaned Path records
    10) Eliminate orphaned Filename records
    11) Eliminate orphaned FileSet records
    12) Eliminate orphaned Client records
    13) Eliminate orphaned Job records
    14) Eliminate all Admin records
    15) Eliminate all Restore records
    16) All (3-15)
    17) Quit
Select function number:
</PRE>
<P>
By entering 1 or 2, you can toggle the modify database flag (-f option) and
the verbose flag (-v). It can be helpful and reassuring to turn off the modify
database flag, then select one or more of the consistency checks (items 3
through 9) to see what will be done, then toggle the modify flag on and re-run
the check. 

<P>
The inconsistencies examined are the following: 

<P>

<UL>
<LI>Duplicate filename records. This can happen if you accidentally run  two
   copies of Bacula at the same time, and they are both adding  filenames
   simultaneously. It is a rare occurrence, but will create  an inconsistent
   database. If this is the case, you will receive  error messages during Jobs
   warning of duplicate database records.  If you are not getting these error
   messages, there is no reason  to run this check. 
</LI>
<LI>Repair bad Filename records. This checks and corrects filenames  that
   have a trailing slash. They should not.  
</LI>
<LI>Repair bad Path records. This checks and corrects path names  that do
   not have a trailing slash. They should.  
</LI>
<LI>Duplicate path records. This can happen if you accidentally run  two
   copies of Bacula at the same time, and they are both adding  filenames
   simultaneously. It is a rare occurrence, but will create  an inconsistent
   database. See the item above for why this occurs and  how you know it is
   happening. 
</LI>
<LI>Orphaned JobMedia records. This happens when a Job record is deleted 
   (perhaps by a user issued SQL statement), but the corresponding  JobMedia
   record (one for each Volume used in the Job) was not deleted.  Normally, this
   should not happen, and even if it does, these records  generally do not take
   much space in your database. However, by running  this check, you can
   eliminate any such orphans.  
</LI>
<LI>Orphaned File records. This happens when a Job record is deleted 
   (perhaps by a user issued SQL statement), but the corresponding  File record
   (one for each Volume used in the Job) was not deleted.  Note, searching for
   these records can be <B>very</B> time consuming (i.e.  it may take hours) for a
   large database. Normally this should not  happen as Bacula takes care to
   prevent it. Just the same, this  check can remove any orphaned File records.
   It is recommended that  you run this once a year since orphaned File records
   can take a  large amount of space in your database. You might
   want to ensure that you have indexes on JobId, FilenameId, and
   PathId for the File table in your catalog before running this
   command.
</LI>
<LI>Orphaned Path records. This condition happens any time a directory is 
   deleted from your system and all associated Job records have been purged. 
   During standard purging (or pruning) of Job records, Bacula does  not check
   for orphaned Path records. As a consequence, over a period  of time, old
   unused Path records will tend to accumulate and use  space in your database.
   This check will eliminate them. It is recommended that you run this
   check at least once a year. 
</LI>
<LI>Orphaned Filename records. This condition happens any time a file is 
   deleted from your system and all associated Job records have been purged. 
   This can happen quite frequently as there are quite a large number  of files
   that are created and then deleted. In addition, if you  do a system update or
   delete an entire directory, there can be  a very large number of Filename
   records that remain in the catalog  but are no longer used.  

<P>
During standard purging (or pruning) of Job records, Bacula does  not check
   for orphaned Filename records. As a consequence, over a period  of time, old
   unused Filename records will accumulate and use  space in your database. This
   check will eliminate them. It is strongly  recommended that you run this check
   at least once a year, and for  large database (more than 200 Megabytes), it is
   probably better to  run this once every 6 months.  
</LI>
<LI>Orphaned Client records. These records can remain in the database  long
   after you have removed a client. 
</LI>
<LI>Orphaned Job records. If no client is defined for a job or you  do not
   run a job for a long time, you can accumulate old job  records. This option
   allow you to remove jobs that are not  attached to any client (and thus
   useless).  
</LI>
<LI>All Admin records. This command will remove all Admin records, 
   regardless of their age.  
</LI>
<LI>All Restore records. This command will remove all Restore records, 
   regardless of their age. 
</LI>
</UL>

<P>
If you are using Mysql, dbcheck will ask you if you want to create temporary
indexes to speed up orphaned Path and Filename elimination.

<P>
Mostly for PostgreSQL users, we provide a pure SQL script dbcheck replacement
in <TT><A NAME="tex2html1"
  HREF="examples/database/dbcheck.sql">examples/database/dbcheck.sql</A></TT> that works with global queries instead
of many small queries like dbcheck. Execution instructions are at the top of
the script and you will need to type <TT>COMMIT</TT> at the end to validate
modifications.

<P>
If you are using bweb or brestore, don't eliminate orphaned Path, else you will
have to rebuild <TT>brestore_pathvisibility</TT> and
<TT>brestore_pathhierarchy</TT> indexes.

<P>
By the way, I personally run dbcheck only where I have messed up
my database due to a bug in developing Bacula code, so normally
you should never need to run dbcheck in spite of the
recommendations given above, which are given so that users don't
waste their time running dbcheck too often.

<P>

<H1><A NAME="SECTION002130000000000000000"></A>
<A NAME="bregex"></A>
<BR>
bregex
</H1>
<A NAME="435"></A>
<A NAME="436"></A>

<P>
<B>bregex</B> is a simple program that will allow you to test 
regular expressions against a file of data. This can be useful
because the regex libraries on most systems differ, and in
addition, regex expressions can be complicated.

<P>
<B>bregex</B> is found in the src/tools directory and it is 
normally installed with your system binaries. To run it, use:

<P>
<PRE>
Usage: bregex [-d debug_level] -f &lt;data-file&gt;
       -f          specify file of data to be matched
       -l          suppress line numbers
       -n          print lines that do not match
       -?          print this message.
</PRE>

<P>
The data-file is a filename that contains lines
of data to be matched (or not) against one or more patterns.
When the program is run, it will prompt you for a regular 
expression pattern, then apply it one line at a time against
the data in the file. Each line that matches will be printed 
preceded by its line number.  You will then be prompted again  
for another pattern.  

<P>
Enter an empty line for a pattern to terminate the program. You
can print only lines that do not match by using the -n option,
and you can suppress printing of line numbers with the -l option.

<P>
This program can be useful for testing regex expressions to be 
applied against a list of filenames.

<P>

<H1><A NAME="SECTION002140000000000000000"></A>
<A NAME="bwild"></A>
<BR>
bwild
</H1>
<A NAME="445"></A>
<A NAME="446"></A>

<P>
<B>bwild</B> is a simple program that will allow you to test 
wild-card expressions against a file of data.

<P>
<B>bwild</B> is found in the src/tools directory and it is 
normally installed with your system binaries. To run it, use:

<P>
<PRE>
Usage: bwild [-d debug_level] -f &lt;data-file&gt;
       -f          specify file of data to be matched
       -l          suppress line numbers
       -n          print lines that do not match
       -?          print this message.
</PRE>

<P>
The data-file is a filename that contains lines
of data to be matched (or not) against one or more patterns.
When the program is run, it will prompt you for a wild-card
pattern, then apply it one line at a time against
the data in the file. Each line that matches will be printed 
preceded by its line number.  You will then be prompted again  
for another pattern.  

<P>
Enter an empty line for a pattern to terminate the program. You
can print only lines that do not match by using the -n option,
and you can suppress printing of line numbers with the -l option.

<P>
This program can be useful for testing wild expressions to be 
applied against a list of filenames.

<P>

<H1><A NAME="SECTION002150000000000000000"></A>
<A NAME="testfind"></A>
<BR>
testfind
</H1>
<A NAME="455"></A>
<A NAME="456"></A>

<P>
<B>testfind</B> permits listing of files using the same search engine that is
used for the <B>Include</B> resource in Job resources. Note, much of the
functionality of this program (listing of files to be included) is present in
the 
estimate commandestimate in the Console program. 

<P>
The original use of testfind was to ensure that Bacula's file search engine
was correct and to print some statistics on file name and path length.
However, you may find it useful to see what bacula would do with a given <B>Include</B> resource. The <B>testfind</B> program can be found in the <B>bacula-source/src/tools</B> directory of the source distribution.
Though it is built with the make process, it is not normally "installed". 

<P>
It is called: 

<P>
<PRE>
Usage: testfind [-d debug_level] [-] [pattern1 ...]
       -a          print extended attributes (Win32 debug)
       -dnn        set debug level to nn
       -           read pattern(s) from stdin
       -?          print this message.
Patterns are used for file inclusion -- normally directories.
Debug level&gt;= 1 prints each file found.
Debug level&gt;= 10 prints path/file for catalog.
Errors are always printed.
Files/paths truncated is a number with len&gt; 255.
Truncation is only in the catalog.
</PRE>
<P>
Where a pattern is any filename specification that is valid within an <B>Include</B> resource definition. If none is specified, <B>/</B> (the root
directory) is assumed. For example: 

<P>
<PRE>
./testfind /bin
</PRE>
<P>
Would print the following: 

<P>
<PRE>
Dir: /bin
Reg: /bin/bash
Lnk: /bin/bash2 -&gt; bash
Lnk: /bin/sh -&gt; bash
Reg: /bin/cpio
Reg: /bin/ed
Lnk: /bin/red -&gt; ed
Reg: /bin/chgrp
...
Reg: /bin/ipcalc
Reg: /bin/usleep
Reg: /bin/aumix-minimal
Reg: /bin/mt
Lnka: /bin/gawk-3.1.0 -&gt; /bin/gawk
Reg: /bin/pgawk
Total files    : 85
Max file length: 13
Max path length: 5
Files truncated: 0
Paths truncated: 0
</PRE>
<P>
Even though <B>testfind</B> uses the same search engine as <B>Bacula</B>, each
directory to be listed, must be entered as a separate command line entry or
entered one line at a time to standard input if the <B>-</B> option was
specified. 

<P>
Specifying a debug level of one (i.e. <B>-d1</B>) on the command line will
cause <B>testfind</B> to print the raw filenames without showing the Bacula
internal file type, or the link (if any). Debug levels of 10 or greater cause
the filename and the path to be separated using the same algorithm that is
used when putting filenames into the Catalog database. 

<P>

<H1><A NAME="SECTION002160000000000000000"></A>
<A NAME="bimagemgr"></A>
<BR>
bimagemgr
</H1>
<A NAME="1401"></A>

<P>
<B>bimagemgr</B> is a utility for those who backup to disk volumes in order to
commit them to CDR disk, rather than tapes. It is a web based interface
written in Perl and is used to monitor when a volume file needs to be burned to
disk. It requires: 

<P>

<UL>
<LI>A web server running on the bacula server 
</LI>
<LI>A CD recorder installed and configured on the bacula server 
</LI>
<LI>The cdrtools package installed on the bacula server. 
</LI>
<LI>perl, perl-DBI module, and either DBD-MySQL DBD-SQLite or DBD-PostgreSQL modules 
   
</LI>
</UL>

<P>
DVD burning is not supported by <B>bimagemgr</B> at this
time, but both are planned for future releases. 

<P>

<H2><A NAME="SECTION002161000000000000000">
bimagemgr installation</A>
</H2>
<A NAME="1407"></A>
<A NAME="1408"></A>

<P>
Installation from tarball:
1. Examine the Makefile and adjust it to your configuration if needed.
2. Edit config.pm to fit your configuration.
3. Do 'make install' as root.
4. Edit httpd.conf and change the Timeout value. The web server must not time
out and close the connection before the burn process is finished. The exact
value needed may vary depending upon your cd recorder speed and whether you are
burning on the bacula server on on another machine across your network. In my 
case I set it to 1000 seconds. Restart httpd.
5. Make sure that cdrecord is setuid root.

<P>
Installation from rpm package:
1. Install the rpm package for your platform.
2. Edit /cgi-bin/config.pm to fit your configuration.
3. Edit httpd.conf and change the Timeout value. The web server must not time
out and close the connection before the burn process is finished. The exact
value needed may vary depending upon your cd recorder speed and whether you are
burning on the bacula server on on another machine across your network. In my 
case I set it to 1000 seconds. Restart httpd.
4. Make sure that cdrecord is setuid root.

<P>
For bacula systems less than 1.36:
1. Edit the configuration section of config.pm to fit your configuration.
2. Run /etc/bacula/create_cdimage_table.pl from a console on your bacula
server (as root) to add the CDImage table to your bacula database.

<P>
Accessing the Volume files:
The Volume files by default have permissions 640 and can only be read by root. 
The recommended approach to this is as follows (and only works if bimagemgr and 
apache are running on the same host as bacula.

<P>
For bacula-1.34 or 1.36 installed from tarball -
1. Create a new user group bacula and add the user apache to the group for 
Red Hat or Mandrake systems. For SuSE systems add the user wwwrun to the 
bacula group.
2. Change ownership of all of your Volume files to root.bacula
3. Edit the /etc/bacula/bacula startup script and set SD_USER=root and 
SD_GROUP=bacula. Restart bacula.

<P>
Note: step 3 should also be done in /etc/init.d/bacula-sd but released versions
of this file prior to 1.36 do not support it. In that case it would be necessary after 
a reboot of the server to execute '/etc/bacula/bacula restart'.

<P>
For bacula-1.38 installed from tarball -
1. Your configure statement should include:
-with-dir-user=bacula
        -with-dir-group=bacula
        -with-sd-user=bacula
        -with-sd-group=disk
        -with-fd-user=root
        -with-fd-group=bacula
2. Add the user apache to the bacula group for Red Hat or Mandrake systems. 
For SuSE systems add the user wwwrun to the bacula group.
3. Check/change ownership of all of your Volume files to root.bacula

<P>
For bacula-1.36 or bacula-1.38 installed from rpm -
1. Add the user apache to the group bacula for Red Hat or Mandrake systems. 
For SuSE systems add the user wwwrun to the bacula group.
2. Check/change ownership of all of your Volume files to root.bacula

<P>
bimagemgr installed from rpm &gt; 1.38.9 will add the web server user to the 
bacula group in a post install script. Be sure to edit the configuration 
information in config.pm after installation of rpm package.

<P>
bimagemgr will now be able to read the Volume files but they are still not 
world readable.

<P>
If you are running bimagemgr on another host (not recommended) then you will
need to change the permissions on all of your backup volume files to 644 in 
order to access them via nfs share or other means. This approach should only 
be taken if you are sure of the security of your environment as it exposes 
the backup Volume files to world read.

<P>

<H2><A NAME="SECTION002162000000000000000">
bimagemgr usage</A>
</H2>
<A NAME="1410"></A>
<A NAME="1411"></A>

<P>
Calling the program in your web browser, e.g. <TT>http://localhost/cgi-bin/bimagemgr.pl</TT> will produce a display as shown below
in Figure 1. The program will query the bacula database and display all volume
files with the date last written and the date last burned to disk. If a volume
needs to be burned (last written is newer than last burn date) a "Burn"
button will be displayed in the rightmost column. 

<P>

<IMG
 WIDTH="794" HEIGHT="596" ALIGN="BOTTOM" BORDER="0"
 SRC="img3.png"
 ALT="\includegraphics{bimagemgr1.eps}"> 
<BR>
Figure 1 

<P>
Place a blank CDR disk in your recorder and click the "Burn" button. This will
cause a pop up window as shown in Figure 2 to display the burn progress. 

<P>

<IMG
 WIDTH="794" HEIGHT="596" ALIGN="BOTTOM" BORDER="0"
 SRC="img4.png"
 ALT="\includegraphics{bimagemgr2.eps}"> 
<BR>
Figure 2 

<P>
When the burn finishes the pop up window will display the results of cdrecord
as shown in Figure 3. Close the pop up window and refresh the main window. The
last burn date will be updated and the "Burn" button for that volume will
disappear. Should you have a failed burn you can reset the last burn date of
that volume by clicking its "Reset" link. 

<P>

<IMG
 WIDTH="794" HEIGHT="596" ALIGN="BOTTOM" BORDER="0"
 SRC="img5.png"
 ALT="\includegraphics{bimagemgr3.eps}"> 
<BR>
Figure 3 

<P>
In the bottom row of the main display window are two more buttons labeled
"Burn Catalog" and "Blank CDRW". "Burn Catalog" will place a copy of
your bacula catalog on a disk. If you use CDRW disks rather than CDR then
"Blank CDRW" allows you to erase the disk before re-burning it. Regularly
committing your backup volume files and your catalog to disk with <B>bimagemgr</B> ensures that you can rebuild easily in the event of some disaster
on the bacula server itself. 

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html110"
  HREF="Bacula_RPM_Packaging_FAQ.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html104"
  HREF="Bacula_Utility_Programs.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html98"
  HREF="Contents.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html106"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html108"
  HREF="GNU_Free_Documentation_Lice.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html111"
  HREF="Bacula_RPM_Packaging_FAQ.html">Bacula RPM Packaging FAQ</A>
<B> Up:</B> <A NAME="tex2html105"
  HREF="Bacula_Utility_Programs.html">Bacula Utility Programs</A>
<B> Previous:</B> <A NAME="tex2html99"
  HREF="Contents.html">Contents</A>
 &nbsp; <B>  <A NAME="tex2html107"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html109"
  HREF="GNU_Free_Documentation_Lice.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>

2012-01-24
</ADDRESS>
</BODY>
</HTML>