]> git.sur5r.net Git - bacula/docs/blobdiff - docs/manuals/en/main/newfeatures.tex
Pull updated newfeatures chapter
[bacula/docs] / docs / manuals / en / main / newfeatures.tex
index cb063dc97d5d6daaece833aa43fc7fefa763eceb..88f4f8cc862da075547879ad426b04cebd963d1a 100644 (file)
-\chapter{New Features in 5.0.0}
-\label{NewFeaturesChapter}
+\chapter{New Features in 5.2.x}
+This chapter presents the new features that have been added to the next
+Community version of Bacula that is not yet released.
+
+\section{New Features in 5.2.2}
+This chapter presents the new features that have been added to the current
+Community version of Bacula that is now released.
+
+\subsection{Additions to RunScript variables}
+You can have access to Director name using \%D in your runscript
+command.
+
+\begin{verbatim}
+RunAfterJob = "/bin/echo Director=%D 
+\end{verbatim}
+
+\section{New Features in 5.2.1}
+This chapter presents the new features were added in the
+Community release version 5.2.1.
+
+There are additional features (plugins) available in the Enterprise version
+that are described in another chapter. A subscription to Bacula Systems
+is required for the Enterprise version.
+
+\subsection{LZO Compression}
+
+LZO compression has been to the File daemon. From the user's point of view,
+it works like the GZIP compression (just replace {\bf compression=GZIP} with
+{\bf compression=LZO}).
+
+For example:
+\begin{verbatim}
+Include {
+   Options { compression=LZO }
+   File = /home
+   File = /data
+}
+\end{verbatim}
+
+LZO provides a much faster compression and decompression speed but lower
+compression ratio than GZIP. It is a good option when you backup to disk. For
+tape, the hardware compression is almost always a better option.
+
+LZO is a good alternative for GZIP1 when you don't want to slow down your
+backup. With a modern CPU it should be able to run almost as fast as:
+
+\begin{itemize}
+\item your client can read data from disk. Unless you have very fast disks like
+  SSD or large/fast RAID array.
+\item the data transfers between the file daemon and the storage daemon even on
+  a 1Gb/s link.
+\end{itemize}
+
+Note, Bacula uses compression level LZO1X-1.
+
+\medskip
+The code for this feature was contributed by Laurent Papier.
+
+\subsection{New Tray Monitor}
+
+Since the old integrated Windows tray monitor doesn't work with
+recent Windows versions, we have written a new Qt Tray Monitor that is available
+for both Linux and Windows.  In addition to all the previous features,
+this new version allows you to run Backups from 
+the tray monitor menu.
+
+\begin{figure}[htbp]
+  \centering
+  \includegraphics[width=10cm]{\idir tray-monitor}
+  \label{fig:traymonitor}
+  \caption{New tray monitor}
+\end{figure}
+
+\begin{figure}[htbp]
+  \centering
+  \includegraphics[width=10cm]{\idir tray-monitor1}
+  \label{fig:traymonitor1}
+  \caption{Run a Job through the new tray monitor}
+\end{figure}
+
+
+To be able to run a job from the tray monitor, you need to
+allow specific commands in the Director monitor console:
+\begin{verbatim}
+Console {
+    Name = win2003-mon
+    Password = "xxx"
+    CommandACL = status, .clients, .jobs, .pools, .storage, .filesets, .messages, run
+    ClientACL = *all*               # you can restrict to a specific host
+    CatalogACL = *all*
+    JobACL = *all*
+    StorageACL = *all*
+    ScheduleACL = *all*
+    PoolACL = *all*
+    FileSetACL = *all*
+    WhereACL = *all*
+}
+\end{verbatim}
+
+\medskip
+This project was funded by Bacula Systems and is available with Bacula
+the Enterprise Edition and the Community Edition.
+
+\subsection{Purge Migration Job}
+
+The new {\bf Purge Migration Job} directive may be added to the Migration
+Job definition in the Director's configuration file. When it is enabled 
+the Job that was migrated during a migration will be purged at
+the end of the migration job.
+
+For example:
+\begin{verbatim}
+Job {
+  Name = "migrate-job"
+  Type = Migrate
+  Level = Full
+  Client = localhost-fd
+  FileSet = "Full Set"
+  Messages = Standard
+  Storage = DiskChanger
+  Pool = Default
+  Selection Type = Job
+  Selection Pattern = ".*Save"
+...
+  Purge Migration Job = yes
+}
+\end{verbatim}
+
+\medskip
+
+This project was submitted by Dunlap Blake; testing and documentation was funded
+by Bacula Systems.
+
+\subsection{Changes in Bvfs (Bacula Virtual FileSystem)}
+
+Bat has now a bRestore panel that uses Bvfs to display files and
+directories.
+
+\begin{figure}[htbp]
+  \centering
+  \includegraphics[width=12cm]{\idir bat-brestore}
+  \label{fig:batbrestore}
+  \caption{Bat Brestore Panel}
+\end{figure}
+
+the Bvfs module works correctly with BaseJobs, Copy and Migration jobs.
+
+\medskip
+This project was funded by Bacula Systems.
+
+\subsubsection*{General notes}
+
+\begin{itemize}
+\item All fields are separated by a tab
+\item You can specify \texttt{limit=} and \texttt{offset=} to list smoothly
+  records in very big directories
+\item All operations (except cache creation) are designed to run instantly
+\item At this time, Bvfs works faster on PostgreSQL than MySQL catalog. If you
+  can contribute new faster SQL queries we will be happy, else don't complain
+  about speed.
+\item The cache creation is dependent of the number of directories. As Bvfs
+  shares information across jobs, the first creation can be slow
+\item All fields are separated by a tab
+\item Due to potential encoding problem, it's advised to always use pathid in
+  queries.
+\end{itemize}
+
+\subsubsection*{Get dependent jobs from a given JobId}
+
+Bvfs allows you to query the catalog against any combination of jobs. You
+can combine all Jobs and all FileSet for a Client in a single session.
+
+To get all JobId needed to restore a particular job, you can use the
+\texttt{.bvfs\_get\_jobids} command.
+
+\begin{verbatim}
+.bvfs_get_jobids jobid=num [all]
+\end{verbatim}
+
+\begin{verbatim}
+.bvfs_get_jobids jobid=10
+1,2,5,10
+.bvfs_get_jobids jobid=10 all
+1,2,3,5,10
+\end{verbatim}
+
+In this example, a normal restore will need to use JobIds 1,2,5,10 to
+compute a complete restore of the system.
+
+With the \texttt{all} option, the Director will use all defined FileSet for
+this client.
+
+\subsubsection*{Generating Bvfs cache}
+
+The \texttt{.bvfs\_update} command computes the directory cache for jobs
+specified in argument, or for all jobs if unspecified.
+
+\begin{verbatim}
+.bvfs_update [jobid=numlist]
+\end{verbatim}
+
+Example:
+\begin{verbatim}
+.bvfs_update jobid=1,2,3
+\end{verbatim}
+
+You can run the cache update process in a RunScript after the catalog backup.
+
+\subsubsection*{Get all versions of a specific file}
+
+Bvfs allows you to find all versions of a specific file for a given Client with
+the \texttt{.bvfs\_version} command. To avoid problems with encoding, this
+function uses only PathId and FilenameId. The jobid argument is mandatory but
+unused.
+
+\begin{verbatim}
+.bvfs_versions client=filedaemon pathid=num filenameid=num jobid=1
+PathId FilenameId FileId JobId LStat Md5 VolName Inchanger
+PathId FilenameId FileId JobId LStat Md5 VolName Inchanger
+...
+\end{verbatim}
+
+Example:
+
+\begin{verbatim}
+.bvfs_versions client=localhost-fd pathid=1 fnid=47 jobid=1
+1  47  52  12  gD HRid IGk D Po Po A P BAA I A   /uPgWaxMgKZlnMti7LChyA  Vol1  1
+\end{verbatim}
+
+\subsubsection*{List directories}
+
+Bvfs allows you to list directories in a specific path.
+\begin{verbatim}
+.bvfs_lsdirs pathid=num path=/apath jobid=numlist limit=num offset=num
+PathId  FilenameId  FileId  JobId  LStat  Path
+PathId  FilenameId  FileId  JobId  LStat  Path
+PathId  FilenameId  FileId  JobId  LStat  Path
+...
+\end{verbatim}
+
+You need to \texttt{pathid} or \texttt{path}. Using \texttt{path=""} will list
+``/'' on Unix and all drives on Windows.  If FilenameId is 0, the record
+listed is a directory.
+
+\begin{verbatim}
+.bvfs_lsdirs pathid=4 jobid=1,11,12
+4       0       0       0       A A A A A A A A A A A A A A     .
+5       0       0       0       A A A A A A A A A A A A A A     ..
+3       0       0       0       A A A A A A A A A A A A A A     regress/
+\end{verbatim}
+
+In this example, to list directories present in \texttt{regress/}, you can use
+\begin{verbatim}
+.bvfs_lsdirs pathid=3 jobid=1,11,12
+3       0       0       0       A A A A A A A A A A A A A A     .
+4       0       0       0       A A A A A A A A A A A A A A     ..
+2       0       0       0       A A A A A A A A A A A A A A     tmp/
+\end{verbatim}
+
+\subsubsection*{List files}
+
+Bvfs allows you to list files in a specific path.
+\begin{verbatim}
+.bvfs_lsfiles pathid=num path=/apath jobid=numlist limit=num offset=num
+PathId  FilenameId  FileId  JobId  LStat  Path
+PathId  FilenameId  FileId  JobId  LStat  Path
+PathId  FilenameId  FileId  JobId  LStat  Path
+...
+\end{verbatim}
+
+You need to \texttt{pathid} or \texttt{path}. Using \texttt{path=""} will list
+``/'' on Unix and all drives on Windows. If FilenameId is 0, the record listed
+is a directory.
+
+\begin{verbatim}
+.bvfs_lsfiles pathid=4 jobid=1,11,12
+4       0       0       0       A A A A A A A A A A A A A A     .
+5       0       0       0       A A A A A A A A A A A A A A     ..
+1       0       0       0       A A A A A A A A A A A A A A     regress/
+\end{verbatim}
+
+In this example, to list files present in \texttt{regress/}, you can use
+\begin{verbatim}
+.bvfs_lsfiles pathid=1 jobid=1,11,12
+1   47   52   12    gD HRid IGk BAA I BMqcPH BMqcPE BMqe+t A     titi
+1   49   53   12    gD HRid IGk BAA I BMqe/K BMqcPE BMqe+t B     toto
+1   48   54   12    gD HRie IGk BAA I BMqcPH BMqcPE BMqe+3 A     tutu
+1   45   55   12    gD HRid IGk BAA I BMqe/K BMqcPE BMqe+t B     ficheriro1.txt
+1   46   56   12    gD HRie IGk BAA I BMqe/K BMqcPE BMqe+3 D     ficheriro2.txt
+\end{verbatim}
+
+\subsubsection*{Restore set of files}
+
+Bvfs allows you to create a SQL table that contains files that you want to
+restore. This table can be provided to a restore command with the file option.
+
+\begin{verbatim}
+.bvfs_restore fileid=numlist dirid=numlist hardlink=numlist path=b2num
+OK
+restore file=?b2num ...
+\end{verbatim}
+
+To include a directory (with \texttt{dirid}), Bvfs needs to run a query to
+select all files. This query could be time consuming.
+
+\texttt{hardlink} list is always composed of a series of two numbers (jobid,
+fileindex). This information can be found in the LinkFI field of the LStat
+packet.
+
+The \texttt{path} argument represents the name of the table that Bvfs will
+store results. The format of this table is \texttt{b2[0-9]+}. (Should start by
+b2 and followed by digits).
+
+Example:
+
+\begin{verbatim}
+.bvfs_restore fileid=1,2,3,4 hardlink=10,15,10,20 jobid=10 path=b20001
+OK
+\end{verbatim}
+
+\subsubsection*{Cleanup after Restore}
+
+To drop the table used by the restore command, you can use the
+\texttt{.bvfs\_cleanup} command.
+
+\begin{verbatim}
+.bvfs_cleanup path=b20001
+\end{verbatim}
+
+\subsubsection*{Clearing the BVFS Cache}
+
+To clear the BVFS cache, you can use the \texttt{.bvfs\_clear\_cache} command.
+
+\begin{verbatim}
+.bvfs_clear_cache yes
+OK
+\end{verbatim}
+
+\subsection{Changes in the Pruning Algorithm}
+
+We rewrote the job pruning algorithm in this version. Previously, in some users
+reported that the pruning process at the end of jobs was very long. It should
+not be longer the case. Now, Bacula won't prune automatically a Job if this
+particular Job is needed to restore data. Example:
+
+\begin{verbatim}
+JobId: 1  Level: Full
+JobId: 2  Level: Incremental
+JobId: 3  Level: Incremental
+JobId: 4  Level: Differential
+.. Other incrementals up to now
+\end{verbatim}
 
-This chapter presents the new features that are in the
-released Bacula version 5.0.0.
+In this example, if the Job Retention defined in the Pool or in the Client
+resource causes that Jobs with Jobid in 1,2,3,4 can be pruned, Bacula will
+detect that JobId 1 and 4 are essential to restore data at the current state
+and will prune only JobId 2 and 3.
 
-\section{Maximum Concurent Jobs for Devices}
-\label{sec:maximumconcurentjobdevice}
+\texttt{Important}, this change affect only the automatic pruning step after a
+Job and the \texttt{prune jobs} Bconsole command. If a volume expires after the
+\texttt{VolumeRetention} period, important jobs can be pruned.
+
+\subsection{Ability to Verify any specified Job}
+You now have the ability to tell Bacula which Job should verify instead of
+automatically verify just the last one.
+
+This feature can be used with VolumeToCatalog, DiskToCatalog and Catalog level.
+
+To verify a given job, just specify the Job jobid in argument when starting the
+job.
+\begin{verbatim}
+*run job=VerifyVolume jobid=1 level=VolumeToCatalog
+Run Verify job
+JobName:     VerifyVolume
+Level:       VolumeToCatalog
+Client:      127.0.0.1-fd
+FileSet:     Full Set
+Pool:        Default (From Job resource)
+Storage:     File (From Job resource)
+Verify Job:  VerifyVol.2010-09-08_14.17.17_03
+Verify List: /tmp/regress/working/VerifyVol.bsr
+When:        2010-09-08 14:17:31
+Priority:    10
+OK to run? (yes/mod/no):
+\end{verbatim}
+
+\medskip
+This project was funded by Bacula Systems and is available with Bacula
+Enterprise Edition and Community Edition.
+
+\subsection{Additions to RunScript variables}
+You can have access to JobBytes and JobFiles using \%b and \%F in your runscript
+command. The Client address is now available through \%h.
+
+\begin{verbatim}
+RunAfterJob = "/bin/echo Job=%j JobBytes=%b JobFiles=%F ClientAddress=%h"
+\end{verbatim}
+
+%\subsection{Changes in drivetype.exe}
+%
+%Now the \texttt{drivetype.exe} program allows you to list all local hard
+%drives. It can help to build dynamic FileSet on Windows.
+%
+%\begin{verbatim}
+%File = "\\|\"c:/program files/bacula/bin32/drivetype\" -l -a"
+%\end{verbatim}
+%
+
+\subsection{Additions to the Plugin API}
+The bfuncs structure has been extended to include a number of
+new entrypoints.
+
+\subsubsection{bfuncs}
+The bFuncs structure defines the callback entry points within Bacula
+that the plugin can use register events, get Bacula values, set
+Bacula values, and send messages to the Job output or debug output.
+
+The exact definition as of this writing is:
+\begin{verbatim}
+typedef struct s_baculaFuncs {
+   uint32_t size;
+   uint32_t version;
+   bRC (*registerBaculaEvents)(bpContext *ctx, ...);
+   bRC (*getBaculaValue)(bpContext *ctx, bVariable var, void *value);
+   bRC (*setBaculaValue)(bpContext *ctx, bVariable var, void *value);
+   bRC (*JobMessage)(bpContext *ctx, const char *file, int line,
+       int type, utime_t mtime, const char *fmt, ...);
+   bRC (*DebugMessage)(bpContext *ctx, const char *file, int line,
+       int level, const char *fmt, ...);
+   void *(*baculaMalloc)(bpContext *ctx, const char *file, int line,
+       size_t size);
+   void (*baculaFree)(bpContext *ctx, const char *file, int line, void *mem);
+   
+   /* New functions follow */
+   bRC (*AddExclude)(bpContext *ctx, const char *file);
+   bRC (*AddInclude)(bpContext *ctx, const char *file);
+   bRC (*AddIncludeOptions)(bpContext *ctx, const char *opts);
+   bRC (*AddRegex)(bpContext *ctx, const char *item, int type);
+   bRC (*AddWild)(bpContext *ctx, const char *item, int type);
+   bRC (*checkChanges)(bpContext *ctx, struct save_pkt *sp);
+
+} bFuncs;
+\end{verbatim}
+
+\begin{description}
+\item [AddExclude] can be called to exclude a file. The file
+  string passed may include wildcards that will be interpreted by
+  the {\bf fnmatch} subroutine. This function can be called 
+  multiple times, and each time the file specified will be added
+  to the list of files to be excluded. Note, this function only
+  permits adding excludes of specific file or directory names,
+  or files matched by the rather simple fnmatch mechanism.
+  See below for information on doing wild-card and regex excludes.
+
+\item [NewPreInclude] can be called to create a new Include block. This
+  block will be added after the current defined Include block. This
+  function can be called multiple times, but each time, it will create
+  a new Include section (not normally needed). This function should
+  be called only if you want to add an entirely new Include block.
+
+\item [NewInclude] can be called to create a new Include block. This
+  block will be added before any user defined Include blocks. This
+  function can be called multiple times, but each time, it will create
+  a new Include section (not normally needed). This function should
+  be called only if you want to add an entirely new Include block.
+
+\item [AddInclude] can be called to add new files/directories to
+  be included.  They are added to the current Include block. If
+  NewInclude has not been included, the current Include block is
+  the last one that the user created. This function
+  should be used only if you want to add totally new files/directories
+  to be included in the backup. 
+
+\item [NewOptions] adds a new Options block to the current Include
+  in front of any other Options blocks. This permits the plugin to
+  add exclude directives (wild-cards and regexes) in front of the
+  user Options, and thus prevent certain files from being backed up.
+  This can be useful if the plugin backs up files, and they should
+  not be also backed up by the main Bacula code.  This function
+  may be called multiple times, and each time, it creates a new
+  prepended Options block. Note: normally you want to call this 
+  entry point prior to calling AddOptions, AddRegex, or AddWild.
+  
+\item [AddOptions] allows the plugin it set options in
+  the current Options block, which is normally created with the
+  NewOptions call just prior to adding Include Options.
+  The permitted options are passed as a character string, where
+  each character has a specific meaning as defined below:
+
+  \begin{description}
+  \item [a] always replace files (default).
+  \item [e] exclude rather than include.
+  \item [h] no recursion into subdirectories.
+  \item [H] do not handle hard links.
+  \item [i] ignore case in wildcard and regex matches.
+  \item [M] compute an MD5 sum.
+  \item [p] use a portable data format on Windows (not recommended).
+  \item [R] backup resource forks and Findr Info.
+  \item [r] read from a fifo
+  \item [S1] compute an SHA1 sum.
+  \item [S2] compute an SHA256 sum.
+  \item [S3] comput an SHA512 sum.
+  \item [s] handle sparse files.
+  \item [m] use st\_mtime only for file differences.
+  \item [k] restore the st\_atime after accessing a file.
+  \item [A] enable ACL backup.
+  \item [Vxxx:] specify verify options. Must terminate with :
+  \item [Cxxx:] specify accurate options. Must terminate with :
+  \item [Jxxx:] specify base job Options. Must terminate with :
+  \item [Pnnn:] specify integer nnn paths to strip. Must terminate with :
+  \item [w] if newer
+  \item [Zn] specify gzip compression level n.
+  \item [K] do not use st\_atime in backup decision.
+  \item [c] check if file changed during backup.
+  \item [N] honor no dump flag.
+  \item [X] enable backup of extended attributes.
+  \end{description}
+
+\item [AddRegex] adds a regex expression to the current Options block.
+  The following options are permitted:
+  \begin{description}
+  \item [ ] (a blank) regex applies to whole path and filename.
+  \item [F] regex applies only to the filename (directory or path stripped).
+  \item [D] regex applies only to the directory (path) part of the name.
+  \end{description}
+
+\item [AddWild] adds a wildcard expression to the current Options block.
+  The following options are permitted:
+  \begin{description}
+  \item [ ] (a blank) regex applies to whole path and filename.
+  \item [F] regex applies only to the filename (directory or path stripped).
+  \item [D] regex applies only to the directory (path) part of the name.
+  \end{description}
+
+\item [checkChanges] call the \texttt{check\_changes()} function in Bacula code
+  that can use Accurate code to compare the file information in argument with
+  the previous file information. The \texttt{delta\_seq} attribute of the
+  \texttt{save\_pkt} will be updated, and the call will return
+  \texttt{bRC\_Seen} if the core code wouldn't decide to backup it.
+  
+\end{description}
+  
+
+\subsubsection{Bacula events}
+The list of events has been extended to include:
+
+\begin{verbatim}
+typedef enum {
+  bEventJobStart        = 1,
+  bEventJobEnd          = 2,
+  bEventStartBackupJob  = 3,
+  bEventEndBackupJob    = 4,
+  bEventStartRestoreJob = 5,
+  bEventEndRestoreJob   = 6,
+  bEventStartVerifyJob  = 7,
+  bEventEndVerifyJob    = 8,
+  bEventBackupCommand   = 9,
+  bEventRestoreCommand  = 10,
+  bEventLevel           = 11,
+  bEventSince           = 12,
+   
+  /* New events */
+  bEventCancelCommand                   = 13,
+  bEventVssBackupAddComponents          = 14,
+  bEventVssRestoreLoadComponentMetadata = 15,
+  bEventVssRestoreSetComponentsSelected = 16,
+  bEventRestoreObject                   = 17,
+  bEventEndFileSet                      = 18,
+  bEventPluginCommand                   = 19,
+  bEventVssBeforeCloseRestore           = 20,
+  bEventVssPrepareSnapshot              = 21
+
+} bEventType;
+\end{verbatim}
+
+\begin{description}
+\item [bEventCancelCommand] is called whenever the currently
+  running Job is canceled */
+
+\item [bEventVssBackupAddComponents] 
+
+\item [bEventVssPrepareSnapshot] is called before creating VSS snapshots, it
+  provides a char[27] table where the plugin can add Windows drives that will
+  be used during the Job. You need to add them without duplicates, and you can
+  use in \texttt{fd\_common.h} \texttt{add\_drive()} and \texttt{copy\_drives()}
+  for this purpose.
+\end{description}
+
+\subsection{ACL enhancements}
+
+The following enhancements are made to the Bacula Filed with regards to
+Access Control Lists (ACLs)
+
+\begin{itemize}
+\item Added support for AIX 5.3 and later new aclx\_get interface which supports
+  POSIX and NFSv4 ACLs.
+\item Added support for new acl types on FreeBSD 8.1 and later which supports
+  POSIX and NFSv4 ACLs.
+\item Some generic cleanups for internal ACL handling.
+\item Fix for acl storage on OSX
+\item Cleanup of configure checks for ACL detection, now configure only
+  tests for a certain interface type based on the operating system
+  this should give less false positives on detection. Also when ACLs
+  are detected no other acl checks are performed anymore.
+\end{itemize}
+
+\medskip
+This project was funded by Planets Communications B.V. and ELM Consultancy B.V.
+and is available with Bacula Enterprise Edition and Community Edition.
+
+\subsection{XATTR enhancements}
+
+The following enhancements are made to the Bacula Filed with regards to
+Extended Attributes (XATTRs)
+
+\begin{itemize}
+\item Added support for IRIX extended attributes using the attr\_get interface.
+\item Added support for Tru64 (OSF1) extended attributes using the
+  getproplist interface.
+\item Added support for AIX extended attributes available in AIX 6.x
+  and higher using the listea/getea/setea interface.
+\item Added some debugging to generic xattr code so it easier to
+  debug.
+\item Cleanup of configure checks for XATTR detection, now configure only
+  tests for a certain interface type based on the operating system
+  this should give less false positives on detection. Also when xattrs
+  are detected no other xattr checks are performed anymore.
+\end{itemize}
+
+\medskip
+This project was funded by Planets Communications B.V. and ELM Consultancy B.V.
+and is available with Bacula Enterprise Edition and Community Edition.
+
+\subsection{Class Based Database Backend Drivers}
+
+The main Bacula Director code is independent of the SQL backend
+in version 5.2.0 and greater.  This means that the Bacula Director can be
+packaged by itself, then each of the different SQL backends supported can
+be packaged separately.  It is possible to build all the DB backends at the
+same time by including multiple database options at the same time.
+
+./configure can be run with multiple database configure options.
+\begin{verbatim}
+   --with-sqlite3
+   --with-mysql
+   --with-postgresql
+\end{verbatim}
+
+Order of testing for databases is:
+\begin{itemize}
+\item postgresql
+\item mysql
+\item sqlite3
+\end{itemize}
+
+Each configured backend generates a file named:
+\verb+libbaccats-<sql_backend_name>-<version>.so+
+A dummy catalog library is created named libbaccats-version.so
+
+At configure time the first detected backend is used as the so called
+default backend and at install time the dummy
+\verb+libbaccats-<version>.so+ is replaced with the default backend type.
+
+If you configure all three backends you get three backend libraries and the
+postgresql gets installed as the default.
+
+When you want to switch to another database, first save any old catalog you
+may have then you can copy one of the three backend libraries over the
+\verb+libbaccats-<version>.so+ e.g.
+
+An actual command, depending on your Bacula version might be:
+\begin{verbatim}
+   cp libbaccats-postgresql-5.2.2.so libbaccats-5.2.2.so
+\end{verbatim}
+
+where the \verb+5.2.2+ must be replaced by the Bacula release
+version number.
+
+Then you must update the default backend in the following files:
+
+\begin{verbatim}
+  create_bacula_database
+  drop_bacula_database
+  drop_bacula_tables
+  grant_bacula_privileges
+  make_bacula_tables
+  make_catalog_backup
+  update_bacula_tables
+\end{verbatim}
+
+And re-run all the above scripts.  Please note, this means
+you will have a new empty database and if you had a previous
+one it will be lost.
+
+All current database backend drivers for catalog information are rewritten
+to use a set of multi inherited C++ classes which abstract the specific
+database specific internals and make sure we have a more stable generic
+interface with the rest of SQL code.  From now on there is a strict
+boundary between the SQL code and the low-level database functions.  This
+new interface should also make it easier to add a new backend for a
+currently unsupported database.  As part of the rewrite the SQLite 2 code
+was removed (e.g.  only SQLite 3 is now supported).  An extra bonus of the
+new code is that you can configure multiple backends in the configure and
+build all backends in one compile session and select the correct database
+backend at install time.  This should make it a lot easier for packages
+maintainers.
+
+
+
+\medskip
+We also added cursor support for PostgreSQL backend, this improves memory
+usage for large installation.
+
+\medskip
+This project was implemented by Planets Communications B.V. and ELM
+Consultancy B.V. and Bacula Systems and is available with both the Bacula
+Enterprise Edition and the Community Edition.
+
+\subsection{Hash List Enhancements}
+
+The htable hash table class has been extended with extra hash functions for
+handling next to char pointer hashes also 32 bits and 64 bits hash keys.
+Also the hash table initialization routines have been enhanced with
+support for passing a hint as to the number of initial pages to use
+for the size of the hash table. Until now the hash table always used
+a fixed value of 10 Mb. The private hash functions of the mountpoint entry
+cache have been rewritten to use the new htable class with a small memory
+footprint.
+
+\medskip
+This project was funded by Planets Communications B.V. and ELM Consultancy B.V.
+and Bacula Systems and is available with Bacula Enterprise Edition and
+Community Edition.
+
+%%
+%%
+%%% =====================================================================
+%%
+%%
+
+
+\section{Release Version 5.0.3}
+
+There are no new features in version 5.0.2.  This version simply fixes a
+number of bugs found in version 5.0.1 during the ongoing development
+process.
+
+\section{Release Version 5.0.2}
+
+There are no new features in version 5.0.2.  This version simply fixes a
+number of bugs found in version 5.0.1 during the ongoing development
+process.
+
+%%
+%%
+
+\section{New Features in 5.0.1}
+
+This chapter presents the new features that are in the released Bacula version
+5.0.1. This version mainly fixes a number of bugs found in version 5.0.0 during
+the ongoing development process.
+
+\subsection{Truncate Volume after Purge}
+\label{sec:actiononpurge}
+
+The Pool directive \textbf{ActionOnPurge=Truncate} instructs Bacula to truncate
+the volume when it is purged with the new command \texttt{purge volume
+  action}. It is useful to prevent disk based volumes from consuming too much
+space.
+
+\begin{verbatim}
+Pool {
+  Name = Default
+  Action On Purge = Truncate
+  ...
+}
+\end{verbatim}
+
+As usual you can also set this property with the \texttt{update volume} command
+\begin{verbatim}
+*update volume=xxx ActionOnPurge=Truncate
+*update volume=xxx actiononpurge=None
+\end{verbatim}
+
+To ask Bacula to truncate your \texttt{Purged} volumes, you need to use the
+following command in interactive mode or in a RunScript as shown after:
+\begin{verbatim}
+*purge volume action=truncate storage=File allpools
+# or by default, action=all
+*purge volume action storage=File pool=Default
+\end{verbatim}
+
+This is possible to specify the volume name, the media type, the pool, the
+storage, etc\dots (see \texttt{help purge}) Be sure that your storage device is
+idle when you decide to run this command.
+
+\begin{verbatim}
+Job {
+ Name = CatalogBackup
+ ...
+ RunScript {
+   RunsWhen=After
+   RunsOnClient=No
+   Console = "purge volume action=all allpools storage=File"
+ }
+}
+\end{verbatim}
+
+\textbf{Important note}: This feature doesn't work as
+expected in version 5.0.0. Please do not use it before version 5.0.1.
+
+\subsection{Allow Higher Duplicates}
+This directive did not work correctly and has been depreciated
+(disabled) in version 5.0.1. Please remove it from your bacula-dir.conf
+file as it will be removed in a future release.
+
+\subsection{Cancel Lower Level Duplicates}
+This directive was added in Bacula version 5.0.1.  It compares the
+level of a new backup job to old jobs of the same name, if any,
+and will kill the job which has a lower level than the other one.
+If the levels are the same (i.e. both are Full backups), then 
+nothing is done and the other Cancel XXX Duplicate directives
+will be examined.
+
+\section{New Features in 5.0.0}
+
+\subsection{Maximum Concurrent Jobs for Devices}
+\label{sec:maximumconcurrentjobdevice}
 
 {\bf Maximum Concurrent Jobs} is a new Device directive in the Storage
 Daemon configuration permits setting the maximum number of Jobs that can
@@ -17,7 +837,7 @@ multiple drives with multiple Jobs that all use the same Pool.
 
 This project was funded by Bacula Systems.
 
-\section{Restore from Multiple Storage Daemons}
+\subsection{Restore from Multiple Storage Daemons}
 \index[general]{Restore}
 
 Previously, you were able to restore from multiple devices in a single Storage
@@ -32,7 +852,7 @@ feature.
 
 This project was funded by Bacula Systems with the help of Equiinet.
 
-\section{File Deduplication using Base Jobs}
+\subsection{File Deduplication using Base Jobs}
 A base job is sort of like a Full save except that you will want the FileSet to
 contain only files that are unlikely to change in the future (i.e.  a snapshot
 of most of your system after installing it).  After the base job has been run,
@@ -50,54 +870,11 @@ Now for the OS part, a Base job will be backed up once, and rather than making
 100 copies of the OS, there will be only one.  If one or more of the systems
 have some files updated, no problem, they will be automatically restored.
 
-A new Job directive \texttt{Base=Jobx, Joby...} permits to specify the list of
-files that will be used during Full backup as base.
-
-\begin{verbatim}
-Job {
-   Name = BackupLinux
-   Level= Base
-   ...
-}
-
-Job {
-   Name = BackupZog4
-   Base = BackupZog4, BackupLinux
-   Accurate = yes
-   ...
-}
-\end{verbatim}
-
-In this example, the job \texttt{BackupZog4} will use the most recent version
-of all files contained in \texttt{BackupZog4} and \texttt{BackupLinux}
-jobs. Base jobs should have run with \texttt{level=Base} to be used.
-
-By default, Bacula will compare permissions bits, user and group fields,
-modification time, size and the checksum of the file to choose between the
-current backup and the BaseJob file list. You can change this behavior with the
-\texttt{BaseJob} FileSet option. This option works like the \texttt{verify=}
-one, that is described in the \ilink{FileSet}{FileSetResource} chapter.
-
-\begin{verbatim}
-FileSet {
-  Name = Full
-  Include = {
-    Options {
-       BaseJob  = pmugcs5
-       Accurate = mcs5
-       Verify   = pin5
-    }
-    File = /
-  }
-}
-\end{verbatim}
-
-\textbf{Important note}: The current implementation doesn't permit to scan
-volume with \textbf{bscan}. The result wouldn't permit to restore files easily.
+See the \ilink{Base Job Chapter}{basejobs} for more information.
 
 This project was funded by Bacula Systems.
 
-\section{AllowCompression = \lt{}yes\vb{}no\gt{}}
+\subsection{AllowCompression = \lt{}yes\vb{}no\gt{}}
 \index[dir]{AllowCompression}
 
 This new directive may be added to Storage resource within the Director's
@@ -126,7 +903,7 @@ daemon and possibly speed up tape backups.
 
 This project was funded by Collaborative Fusion, Inc.
 
-\section{Accurate Fileset Options}
+\subsection{Accurate Fileset Options}
 \label{sec:accuratefileset}
 
 In previous versions, the accurate code used the file creation and modification
@@ -139,7 +916,7 @@ FileSet {
   Name = Full
   Include = {
     Options {
-       Accurate = mcs5
+       Accurate = mcs
        Verify   = pin5
     }
     File = /
@@ -170,7 +947,7 @@ and size.
 
 This project was funded by Bacula Systems.
 
-\section{Tab-completion for Bconsole}
+\subsection{Tab-completion for Bconsole}
 \label{sec:tabcompletion}
 
 If you build \texttt{bconsole} with readline support, you will be able to use
@@ -188,16 +965,25 @@ The new bconsole won't be able to tab-complete with older directors.
 
 This project was funded by Bacula Systems.
 
-\section{Pool File and Job retention}
+\subsection{Pool File and Job Retention}
 \label{sec:poolfilejobretention}
 
-% TODO check
 We added two new Pool directives, \texttt{FileRetention} and
 \texttt{JobRetention}, that take precedence over Client directives of the same
 name. It allows you to control the Catalog pruning algorithm Pool by Pool. For
 example, you can decide to increase Retention times for Archive or OffSite Pool.
 
-\section{Read-only File Daemon using capabilities}
+It seems obvious to us, but apparently not to some users, that given the
+definition above that the Pool File and Job Retention periods is a global
+override for the normal Client based pruning, which means that when the
+Job is pruned, the pruning will apply globally to that particular Job.
+
+Currently, there is a bug in the implementation that causes any Pool 
+retention periods specified to apply to {\bf all} Pools for that
+particular Client.  Thus we suggest that you avoid using these two
+directives until this implementation problem is corrected.
+
+\subsection{Read-only File Daemon using capabilities}
 \label{sec:fdreadonly}
 This feature implements support of keeping \textbf{ReadAll} capabilities after
 UID/GID switch, this allows FD to keep root read but drop write permission.
@@ -209,9 +995,9 @@ It introduces new \texttt{bacula-fd} option (\texttt{-k}) specifying that
 root@localhost:~# bacula-fd -k -u nobody -g nobody
 \end{verbatim}
 
-The code for this feature was contributed by AltLinux.
+The code for this feature was contributed by our friends at AltLinux.
 
-\section{Bvfs API}
+\subsection{Bvfs API}
 \label{sec:bvfs}
 
 To help developers of restore GUI interfaces, we have added new \textsl{dot
@@ -243,7 +1029,7 @@ data that will be displayed.
 
 This project was funded by Bacula Systems.
 
-\section{Testing your Tape Drive}
+\subsection{Testing your Tape Drive}
 \label{sec:btapespeed}
 
 To determine the best configuration of your tape drive, you can run the new
@@ -287,11 +1073,11 @@ btape.c:383 Total Volume bytes=9.664 GB. Total Write rate = 7.365 MB/s
 
 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).
+of your hardware chain. (CPU, memory, SCSI card, cable, drive, tape).
 
 You can change the block size in the Storage Daemon configuration file.
 
-\section{New {\bf Block Checksum} Device Directive}
+\subsection{New {\bf Block Checksum} Device Directive}
 You may now turn off the Block Checksum (CRC32) code
 that Bacula uses when writing blocks to a Volume.  This is
 done by adding:
@@ -310,11 +1096,11 @@ We do not recommend to turn this off particularly on older tape
 drives or for disk Volumes where doing so may allow corrupted data
 to go undetected.
 
-\section{New Bat Features}
+\subsection{New Bat Features}
 
 Those new features were funded by Bacula Systems.
 
-\subsection{Media List View}
+\subsubsection{Media List View}
 
 By clicking on ``Media'', you can see the list of all your volumes. You will be
 able to filter by Pool, Media Type, Location,\dots And sort the result directly
@@ -326,7 +1112,7 @@ in the table. The old ``Media'' view is now known as ``Pool''.
 \end{figure}
 
 
-\subsection{Media Information View}
+\subsubsection{Media Information View}
 
 By double-clicking on a volume (on the Media list, in the Autochanger content
 or in the Job information panel), you can access a detailed overview of your
@@ -338,7 +1124,7 @@ Volume. (cf \ref{fig:mediainfo}.)
   \label{fig:mediainfo}
 \end{figure}
 
-\subsection{Job Information View}
+\subsubsection{Job Information View}
 
 By double-clicking on a Job record (on the Job run list or in the Media
 information panel), you can access a detailed overview of your Job. (cf
@@ -350,7 +1136,7 @@ information panel), you can access a detailed overview of your Job. (cf
   \label{fig:jobinfo}
 \end{figure}
 
-\subsection{Autochanger Content View}
+\subsubsection{Autochanger Content View}
 
 By double-clicking on a Storage record (on the Storage list panel), you can
 access a detailed overview of your Autochanger. (cf \ref{fig:jobinfo}.)
@@ -364,15 +1150,15 @@ access a detailed overview of your Autochanger. (cf \ref{fig:jobinfo}.)
 To use this feature, you need to use the latest mtx-changer script
 version. (With new \texttt{listall} and \texttt{transfer} commands)
 
-\section{Bat on Windows}
+\subsection{Bat on Windows}
 We have ported {\bf bat} to Windows and it is now installed 
 by default when the installer is run.  It works quite well 
 on Win32, but has not had a lot of testing there, so your
-feedback would be welcome.  Unfortunately, eventhough it is
+feedback would be welcome.  Unfortunately, even though it is
 installed by default, it does not yet work on 64 bit Windows
 operating systems.
 
-\section{New Win32 Installer}
+\subsection{New Win32 Installer}
 The Win32 installer has been modified in several very important
 ways.  
 \begin{itemize}
@@ -397,7 +1183,7 @@ they have not been ported to 64 bits), or you can contact
 Bacula Systems about this.
 \end{itemize}
 
-\section{Win64 Installer}
+\subsection{Win64 Installer}
 We have corrected a number of problems that required manual
 editing of the conf files.  In most cases, it should now
 install and work.  {\bf bat} is by default installed in
@@ -405,19 +1191,22 @@ install and work.  {\bf bat} is by default installed in
 {\bf c:/Program Files/Bacula} as is the case with the 32
 bit Windows installer.
 
-\section{Bare Metal Recovery USB Key}
+\subsection{Linux Bare Metal Recovery USB Key}
 We have made a number of significant improvements in the
 Bare Metal Recovery USB key.  Please see the README files
-it the {\bf rescue} release for more details.
+it the {\bf rescue} release for more details.  
 
+We are working on an equivalent USB key for Windows bare
+metal recovery, but it will take some time to develop it (best
+estimate 3Q2010 or 4Q2010)
 
 
-\section{bconsole Timeout Option}
+\subsection{bconsole Timeout Option}
 You can now use the -u option of {\bf bconsole} to set a timeout in seconds
 for commands. This is useful with GUI programs that use {\bf bconsole}
 to interface to the Director.
 
-\section{Important Changes}
+\subsection{Important Changes}
 \label{sec:importantchanges}
 
 \begin{itemize}
@@ -426,10 +1215,18 @@ to interface to the Director.
   write to the same Volume.
 \item The \texttt{Device Poll Interval} is now 5 minutes. (previously did not
   poll by default).
+\item Virtually all the features of {\bf mtx-changer} have
+  now been parametrized, which allows you to configure
+  mtx-changer without changing it. There is a new configuration file {\bf mtx-changer.conf} 
+  that contains variables that you can set to configure mtx-changer.
+  This configuration file will not be overwritten during upgrades.
+  We encourage you to submit any changes
+  that are made to mtx-changer and to parametrize it all in
+  mtx-changer.conf so that all configuration will be done by
+  changing only mtx-changer.conf.
 \item The new \texttt{mtx-changer} script has two new options, \texttt{listall}
-  and \texttt{transfer}. Be sure to apply any custom changes on to the 
-  mtx-changer script, or better yet, use mtx-changer.conf to configure
-  them.
+  and \texttt{transfer}. Please configure them as appropriate
+  in mtx-changer.conf.
 \item To enhance security of the \texttt{BackupCatalog} job, we provide a new
   script (\texttt{make\_catalog\_backup.pl}) that does not expose your catalog
   password. If you want to use the new script, you will need to 
@@ -439,25 +1236,13 @@ to interface to the Director.
   command (ex: \texttt{help run}).
 \end{itemize}
 
+
 \subsubsection*{Truncate volume after purge}
-\label{sec:actiononpurge}
 
-This feature doesn't work as expected in version 5.0.0. Please do not use it
-before version 5.0.1.
+Note that the Truncate Volume after purge feature doesn't work as expected
+in 5.0.0 version. Please, don't use it before version 5.0.1.
 
-%The Pool directive \textbf{ActionOnPurge=Truncate} instructs Bacula to truncate
-%the volume when it is purged. It is useful to prevent disk based volumes from
-%consuming too much space. 
-%
-%\begin{verbatim}
-%Pool {
-%  Name = Default
-%  Action On Purge = Truncate
-%  ...
-%}
-%\end{verbatim}
-%
-\subsection{Custom Catalog queries}
+\subsubsection{Custom Catalog queries}
 
 If you wish to add specialized commands that list the contents of the catalog,
 you can do so by adding them to the \texttt{query.sql} file. This
@@ -465,7 +1250,7 @@ you can do so by adding them to the \texttt{query.sql} file. This
 \texttt{examples/sample-query.sql} has an a number of sample commands
 you might find useful.
 
-\subsection{Deprecated parts}
+\subsubsection{Deprecated parts}
 
 The following items have been \textbf{deprecated} for a long time, and are now
 removed from the code.
@@ -474,7 +1259,7 @@ removed from the code.
 \item Support for SQLite 2
 \end{itemize}
 
-\section{Misc Changes}
+\subsection{Misc Changes}
 \label{sec:miscchanges}
 
 \begin{itemize}
@@ -497,15 +1282,15 @@ removed from the code.
 \chapter{Released Version 3.0.3 and 3.0.3a}
 
 There are no new features in version 3.0.3.  This version simply fixes a
-number of bugs found in version 3.0.2 during the onging development
+number of bugs found in version 3.0.2 during the ongoing development
 process.
 
-\chapter{New Features in Released Version 3.0.2}
+\section{New Features in Released Version 3.0.2}
 
 This chapter presents the new features added to the
 Released Bacula Version 3.0.2.
 
-\section{Full Restore from a Given JobId}
+\subsection{Full Restore from a Given JobId}
 \index[general]{Restore menu}
 
 This feature allows selecting a single JobId and having Bacula
@@ -547,7 +1332,7 @@ Building directory tree for JobId(s) 1,3,5 ...  +++++++++++++++++++
 
 This project was funded by Bacula Systems.
 
-\section{Source Address}
+\subsection{Source Address}
 \index[general]{Source Address}
 
 A feature has been added which allows the administrator to specify the address
@@ -582,7 +1367,7 @@ from, while system services listen and act from the unique interface addresses.
 
 This project was funded by Collaborative Fusion, Inc.
 
-\section{Show volume availability when doing restore}
+\subsection{Show volume availability when doing restore}
 
 When doing a restore the selection dialog ends by displaying this
 screen:
@@ -609,7 +1394,7 @@ waiting for the operator to discover that he must change tapes in the library.
 
 This project was funded by Bacula Systems.
 
-\section{Accurate estimate command}
+\subsection{Accurate estimate command}
 
 The \texttt{estimate} command can now use the accurate code to detect changes
 and give a better estimation.
@@ -623,25 +1408,25 @@ You can set the accurate behavior on the command line by using
 
 This project was funded by Bacula Systems.
 
-\chapter{New Features in 3.0.0}
+\section{New Features in 3.0.0}
 \label{NewFeaturesChapter}
 \index[general]{New Features}
 
 This chapter presents the new features added to the development 2.5.x
 versions to be released as Bacula version 3.0.0 sometime in April 2009.
 
-\section{Accurate Backup}
+\subsection{Accurate Backup}
 \index[general]{Accurate Backup}
 
 As with most other backup programs, by default Bacula decides what files to
-backup for Incremental and Differental backup by comparing the change
+backup for Incremental and Differential backup by comparing the change
 (st\_ctime) and modification (st\_mtime) times of the file to the time the last
 backup completed.  If one of those two times is later than the last backup
 time, then the file will be backed up.  This does not, however, permit tracking
 what files have been deleted and will miss any file with an old time that may
 have been restored to or moved onto the client filesystem.
 
-\subsection{Accurate = \lt{}yes\vb{}no\gt{}}
+\subsubsection{Accurate = \lt{}yes\vb{}no\gt{}}
 If the {\bf Accurate = \lt{}yes\vb{}no\gt{}} directive is enabled (default no) in
 the Job resource, the job will be run as an Accurate Job. For a {\bf Full}
 backup, there is no difference, but for {\bf Differential} and {\bf
@@ -668,7 +1453,7 @@ This project was funded by Bacula Systems.
                                        
 
 
-\section{Copy Jobs}
+\subsection{Copy Jobs}
 \index[general]{Copy Jobs}
 
 A new {\bf Copy} job type 'C' has been implemented. It is similar to the
@@ -776,7 +1561,6 @@ JobDefs {
   Maximum Concurrent Jobs = 10
   SpoolData = No
   Allow Duplicate Jobs = Yes
-  Allow Higher Duplicates = No
   Cancel Queued Duplicates = No
   Cancel Running Duplicates = No
   Priority = 13
@@ -812,7 +1596,7 @@ The command \texttt{list copies [jobid=x,y,z]} lists copies for a given
 +-------+------------------------------------+-----------+------------------+
 \end{verbatim}
 
-\section{ACL Updates}
+\subsection{ACL Updates}
 \index[general]{ACL Updates}
 The whole ACL code had been overhauled and in this version each platforms has
 different streams for each type of acl available on such an platform. As ACLs
@@ -821,7 +1605,7 @@ some use an other draft or a completely different format) we currently only
 allow certain platform specific ACL streams to be decoded and restored on the
 same platform that they were created on.  The old code allowed to restore ACL
 cross platform but the comments already mention that not being to wise. For
-backward compatability the new code will accept the two old ACL streams and
+backward compatibility the new code will accept the two old ACL streams and
 handle those with the platform specific handler. But for all new backups it
 will save the ACLs using the new streams.
 
@@ -873,20 +1657,20 @@ part of the stream numbers):
 \end{itemize}
 
 In future versions we might support conversion functions from one type of acl
-into an other for types that are either the same or easily convertable. For now
-the streams are seperate and restoring them on a platform that doesn't
+into an other for types that are either the same or easily convertible. For now
+the streams are separate and restoring them on a platform that doesn't
 recognize them will give you a warning.
 
-\section{Extended Attributes}
+\subsection{Extended Attributes}
 \index[general]{Extended Attributes}
 Something that was on the project list for some time is now implemented for
 platforms that support a similar kind of interface. Its the support for backup
 and restore of so called extended attributes. As extended attributes are so
-platform specific these attributes are saved in seperate streams for each
+platform specific these attributes are saved in separate streams for each
 platform.  Restores of the extended attributes can only be performed on the
 same platform the backup was done.  There is support for all types of extended
 attributes, but restoring from one type of filesystem onto an other type of
-filesystem on the same platform may lead to supprises.  As extended attributes
+filesystem on the same platform may lead to surprises.  As extended attributes
 can contain any type of data they are stored as a series of so called
 value-pairs.  This data must be seen as mostly binary and is stored as such.
 As security labels from selinux are also extended attributes this option also
@@ -901,9 +1685,9 @@ Currently the following platforms support extended attributes:
  \item {\bf NetBSD}
 \end{itemize}
 
-On linux acls are also extended attributes, as such when you enable ACLs on a
+On Linux acls are also extended attributes, as such when you enable ACLs on a
 Linux platform it will NOT save the same data twice e.g. it will save the ACLs
-and not the same exteneded attribute.
+and not the same extended attribute.
 
 To enable the backup of extended attributes please add the following to your
 fileset definition.
@@ -920,7 +1704,7 @@ fileset definition.
   }
 \end{verbatim}
 
-\section{Shared objects}
+\subsection{Shared objects}
 \index[general]{Shared objects}
 A default build of Bacula will now create the libraries as shared objects
 (.so) rather than static libraries as was previously the case.  
@@ -971,7 +1755,7 @@ libtool on the configure command line with:
 \end{verbatim}
 
 
-\section{Building Static versions of Bacula}
+\subsection{Building Static versions of Bacula}
 \index[general]{Static linking}
 In order to build static versions of Bacula, in addition
 to configuration options that were needed you now must
@@ -982,7 +1766,7 @@ also add --disable-libtool.  Example
 \end{verbatim}
 
 
-\section{Virtual Backup (Vbackup)}
+\subsection{Virtual Backup (Vbackup)}
 \index[general]{Virtual Backup}
 \index[general]{Vbackup}
 
@@ -1108,7 +1892,7 @@ Full was actually run.
 
 
 
-\section{Catalog Format}
+\subsection{Catalog Format}
 \index[general]{Catalog Format}
 Bacula 3.0 comes with some changes to the catalog format.  The upgrade
 operation will convert the FileId field of the File table from 32 bits (max 4
@@ -1120,7 +1904,7 @@ minutes to upgrade on a normal machine.  Please don't forget to make a valid
 backup of your database before executing the upgrade script. See the 
 ReleaseNotes for additional details.
 
-\section{64 bit Windows Client}
+\subsection{64 bit Windows Client}
 \index[general]{Win64 Client}
 Unfortunately, Microsoft's implementation of Volume Shadown Copy (VSS) on
 their 64 bit OS versions is not compatible with a 32 bit Bacula Client.
@@ -1165,7 +1949,7 @@ Compared to the Win32 Bacula Client, the 64 bit release contains a few differenc
 This project was funded by Bacula Systems.
 
 
-\section{Duplicate Job Control}
+\subsection{Duplicate Job Control}
 \index[general]{Duplicate Jobs}
 The new version of Bacula provides four new directives that
 give additional control over what Bacula does if duplicate jobs 
@@ -1179,42 +1963,39 @@ are specified in the Job resource.
 
 They are:
 
-\subsection{Allow Duplicate Jobs = \lt{}yes\vb{}no\gt{}}
+\subsubsection{Allow Duplicate Jobs = \lt{}yes\vb{}no\gt{}}
 \index[general]{Allow Duplicate Jobs}
-  If this directive is enabled duplicate jobs will be run.  If
+  If this directive is set to {\bf yes}, duplicate jobs will be run.  If
   the directive is set to {\bf no} (default) then only one job of a given name
   may run at one time, and the action that Bacula takes to ensure only
   one job runs is determined by the other directives (see below).
  
   If {\bf Allow Duplicate Jobs} is set to {\bf no} and two jobs
   are present and none of the three directives given below permit
-  cancelling a job, then the current job (the second one started)
-  will be cancelled.
-
+  Canceling a job, then the current job (the second one started)
+  will be canceled.
 
-\subsection{Allow Higher Duplicates = \lt{}yes\vb{}no\gt{}}
+\subsubsection{Allow Higher Duplicates = \lt{}yes\vb{}no\gt{}}
 \index[general]{Allow Higher Duplicates}
-  If this directive is set to {\bf yes} (default) the job with a higher
-  priority (lower priority number) will be permitted to run, and
-  the current job will be cancelled.  If the
-  priorities of the two jobs are the same, the outcome is determined by
-  other directives (see below).
+  This directive was in version 5.0.0, but does not work as
+  expected. If used, it should always be set to no.  In later versions
+  of Bacula the directive is disabled (disregarded).
+
+\subsubsection{Cancel Running Duplicates = \lt{}yes\vb{}no\gt{}}
+\index[general]{Cancel Running Duplicates}
+  If {\bf Allow Duplicate Jobs} is set to {\bf no} and
+  if this directive is set to {\bf yes} any job that is already running
+  will be canceled.  The default is {\bf no}.
 
-\subsection{Cancel Queued Duplicates = \lt{}yes\vb{}no\gt{}}
+\subsubsection{Cancel Queued Duplicates = \lt{}yes\vb{}no\gt{}}
 \index[general]{Cancel Queued Duplicates}
   If {\bf Allow Duplicate Jobs} is set to {\bf no} and
   if this directive is set to {\bf yes} any job that is
   already queued to run but not yet running will be canceled.
   The default is {\bf no}. 
 
-\subsection{Cancel Running Duplicates = \lt{}yes\vb{}no\gt{}}
-\index[general]{Cancel Running Duplicates}
-  If {\bf Allow Duplicate Jobs} is set to {\bf no} and
-  if this directive is set to {\bf yes} any job that is already running
-  will be canceled.  The default is {\bf no}.
 
-
-\section{TLS Authentication}
+\subsection{TLS Authentication}
 \index[general]{TLS Authentication}
 In Bacula version 2.5.x and later, in addition to the normal Bacula
 CRAM-MD5 authentication that is used to authenticate each Bacula
@@ -1227,7 +2008,7 @@ specify all the TLS directives normally used to enable communications
 encryption (TLS Enable, TLS Verify Peer, TLS Certificate, ...) and
 a new directive:
 
-\subsection{TLS Authenticate = yes}
+\subsubsection{TLS Authenticate = yes}
 \begin{verbatim}
 TLS Authenticate = yes
 \end{verbatim}
@@ -1243,14 +2024,14 @@ the two Bacula daemons will be done without encryption.
 If you want to encrypt communications data, use the normal TLS directives
 but do not turn on {\bf TLS Authenticate}.
 
-\section{bextract non-portable Win32 data}
+\subsection{bextract non-portable Win32 data}
 \index[general]{bextract handles Win32 non-portable data}
 {\bf bextract} has been enhanced to be able to restore
 non-portable Win32 data to any OS.  Previous versions were 
 unable to restore non-portable Win32 data to machines that
 did not have the Win32 BackupRead and BackupWrite API calls.
 
-\section{State File updated at Job Termination}
+\subsection{State File updated at Job Termination}
 \index[general]{State File}
 In previous versions of Bacula, the state file, which provides a
 summary of previous jobs run in the {\bf status} command output was
@@ -1258,7 +2039,7 @@ updated only when Bacula terminated, thus if the daemon crashed, the
 state file might not contain all the run data.  This version of
 the Bacula daemons updates the state file on each job termination.
 
-\section{MaxFullInterval = \lt{}time-interval\gt{}}
+\subsection{MaxFullInterval = \lt{}time-interval\gt{}}
 \index[general]{MaxFullInterval}
 The new Job resource directive {\bf Max Full Interval = \lt{}time-interval\gt{}}
 can be used to specify the maximum time interval between {\bf Full} backup
@@ -1267,7 +2048,7 @@ greater than the specified interval, and the job would normally be an
 {\bf Incremental} or {\bf Differential}, it will be automatically
 upgraded to a {\bf Full} backup.
 
-\section{MaxDiffInterval = \lt{}time-interval\gt{}}
+\subsection{MaxDiffInterval = \lt{}time-interval\gt{}}
 \index[general]{MaxDiffInterval}
 The new Job resource directive {\bf Max Diff Interval = \lt{}time-interval\gt{}}
 can be used to specify the maximum time interval between {\bf Differential} backup
@@ -1276,7 +2057,7 @@ greater than the specified interval, and the job would normally be an
 {\bf Incremental}, it will be automatically
 upgraded to a {\bf Differential} backup.
 
-\section{Honor No Dump Flag = \lt{}yes\vb{}no\gt{}}
+\subsection{Honor No Dump Flag = \lt{}yes\vb{}no\gt{}}
 \index[general]{MaxDiffInterval}
 On FreeBSD systems, each file has a {\bf no dump flag} that can be set
 by the user, and when it is set it is an indication to backup programs
@@ -1291,7 +2072,7 @@ obey this flag.  The new directive is:
 The default value is {\bf no}.
 
 
-\section{Exclude Dir Containing = \lt{}filename-string\gt{}}
+\subsection{Exclude Dir Containing = \lt{}filename-string\gt{}}
 \index[general]{IgnoreDir}
 The {\bf ExcludeDirContaining = \lt{}filename\gt{}} is a new directive that
 can be added to the Include section of the FileSet resource.  If the specified
@@ -1335,7 +2116,7 @@ applies to the two directories in question and any children (be they
 files, directories, etc).
 
 
-\section{Bacula Plugins}
+\subsection{Bacula Plugins}
 \index[general]{Plugin}
 Support for shared object plugins has been implemented in the Linux, Unix
 and Win32 File daemons. The API will be documented separately in
@@ -1346,7 +2127,7 @@ get control to backup and restore a file.
 Plugins are also planned (partially implemented) in the Director and the
 Storage daemon.  
 
-\subsection{Plugin Directory}
+\subsubsection{Plugin Directory}
 \index[general]{Plugin Directory}
 Each daemon (DIR, FD, SD) has a new {\bf Plugin Directory} directive that may
 be added to the daemon definition resource. The directory takes a quoted 
@@ -1355,10 +2136,10 @@ find the Bacula plugins. If this directive is not specified, Bacula will not
 load any plugins. Since each plugin has a distinctive name, all the daemons
 can share the same plugin directory. 
 
-\subsection{Plugin Options}
+\subsubsection{Plugin Options}
 \index[general]{Plugin Options}
 The {\bf Plugin Options} directive takes a quoted string
-arguement (after the equal sign) and may be specified in the
+argument (after the equal sign) and may be specified in the
 Job resource.  The options specified will be passed to all plugins
 when they are run.  This each plugin must know what it is looking
 for. The value defined in the Job resource can be modified
@@ -1369,7 +2150,7 @@ Note: this directive may be specified, and there is code to modify
 the string in the run command, but the plugin options are not yet passed to
 the plugin (i.e. not fully implemented).
 
-\subsection{Plugin Options ACL}
+\subsubsection{Plugin Options ACL}
 \index[general]{Plugin Options ACL}
 The {\bf Plugin Options ACL} directive may be specified in the
 Director's Console resource. It functions as all the other ACL commands
@@ -1378,7 +2159,7 @@ do by permitting users running restricted consoles to specify a
 definition. Without this directive restricted consoles may not modify
 the Plugin Options.
 
-\subsection{Plugin = \lt{}plugin-command-string\gt{}}
+\subsubsection{Plugin = \lt{}plugin-command-string\gt{}}
 \index[general]{Plugin}
 The {\bf Plugin} directive is specified in the Include section of
 a FileSet resource where you put your {\bf File = xxx} directives.
@@ -1409,11 +2190,14 @@ rest of the string as he wishes.
 Please see the next section for information about the {\bf bpipe} Bacula
 plugin.
 
-\section{The bpipe Plugin}
+\subsection{The bpipe Plugin}
 \index[general]{The bpipe Plugin}
 The {\bf bpipe} plugin is provided in the directory src/plugins/fd/bpipe-fd.c of
 the Bacula source distribution. When the plugin is compiled and linking into
 the resulting dynamic shared object (DSO), it will have the name {\bf bpipe-fd.so}.
+Please note that this is a very simple plugin that was written for
+demonstration and test purposes. It is and can be used in production, but
+that was never really intended.
 
 The purpose of the plugin is to provide an interface to any system program for
 backup and restore. As specified above the {\bf bpipe} plugin is specified in
@@ -1441,13 +2225,24 @@ a conflict with a path and filename that actually exists on your system.
 \item {\bf field3} for the {\bf bpipe} plugin 
 specifies the "reader" program that is called by the plugin during
 backup to read the data. {\bf bpipe} will call this program by doing a
-{\bf popen} on it.
+{\bf popen} on it. 
 
 \item {\bf field4} for the {\bf bpipe} plugin
 specifies the "writer" program that is called by the plugin during
 restore to write the data back to the filesystem.  
 \end{description}
 
+Please note that for two items above describing the "reader" and "writer"
+fields, these programs are "executed" by Bacula, which
+means there is no shell interpretation of any command line arguments
+you might use.  If you want to use shell characters (redirection of input
+or output, ...), then we recommend that you put your command or commands
+in a shell script and execute the script. In addition if you backup a
+file with the reader program, when running the writer program during
+the restore, Bacula will not automatically create the path to the file.
+Either the path must exist, or you must explicitly do so with your command
+or in a shell script.
+
 Putting it all together, the full plugin directive line might look
 like the following:
 
@@ -1478,16 +2273,16 @@ By using different command lines to {\bf bpipe},
 you can backup any kind of data (ASCII or binary) depending
 on the program called.
 
-\section{Microsoft Exchange Server 2003/2007 Plugin}
+\subsection{Microsoft Exchange Server 2003/2007 Plugin}
 \index[general]{Microsoft Exchange Server 2003/2007 Plugin}
-\subsection{Background}
+\subsubsection{Background}
 The Exchange plugin was made possible by a funded development project
 between Equiinet Ltd -- www.equiinet.com (many thanks) and Bacula Systems.
 The code for the plugin was written by James Harper, and the Bacula core
 code by Kern Sibbald.  All the code for this funded development has become
 part of the Bacula project.  Thanks to everyone who made it happen.
 
-\subsection{Concepts}
+\subsubsection{Concepts}
 Although it is possible to backup Exchange using Bacula VSS the Exchange 
 plugin adds a good deal of functionality, because while Bacula VSS
 completes a full backup (snapshot) of Exchange, it does
@@ -1514,7 +2309,7 @@ of entire storage groups or individual databases. Backing up and
 restoring at the individual mailbox or email item is not supported but
 can be simulated by use of the "Recovery" Storage Group (see below).
 
-\subsection{Installing}
+\subsubsection{Installing}
 The Exchange plugin requires a DLL that is shipped with Microsoft
 Exchanger Server called {\bf esebcli2.dll}. Assuming Exchange is installed
 correctly the Exchange plugin should find this automatically and run
@@ -1526,7 +2321,7 @@ directory (eg C:\verb+\+Program Files\verb+\+Bacula\verb+\+bin). The Exchange AP
 named esebcli2.dll and is found in C:\verb+\+Program Files\verb+\+Exchsrvr\verb+\+bin on a
 default Exchange installation.
 
-\subsection{Backing Up}
+\subsubsection{Backing Up}
 To back up an Exchange server the Fileset definition must contain at
 least {\bf Plugin = "exchange:/@EXCHANGE/Microsoft Information Store"} for
 the backup to work correctly. The 'exchange:' bit tells Bacula to look
@@ -1556,7 +2351,7 @@ the plugin and Exchange's shared ideas of when the last full backup was
 done, and may also truncate log files incorrectly. It is important,
 therefore, that the Exchange database files be excluded from the backup,
 although the folders the files are in should be included, or they will
-have to be recreated manually if a baremetal restore is done.
+have to be recreated manually if a bare metal restore is done.
 
 \begin{verbatim}
 FileSet {
@@ -1581,7 +2376,7 @@ reduce the size of your backup since all the important Exchange files
 will be properly saved by the Plugin.
 
 
-\subsection{Restoring}
+\subsubsection{Restoring}
 The restore operation is much the same as a normal Bacula restore, with
 the following provisos:
 
@@ -1602,7 +2397,7 @@ the following provisos:
    as Exchange can get confused by stray log files lying around.
 \end{itemize}
 
-\subsection{Restoring to the Recovery Storage Group}
+\subsubsection{Restoring to the Recovery Storage Group}
 The concept of the Recovery Storage Group is well documented by
 Microsoft 
 \elink{http://support.microsoft.com/kb/824126}{http://support.microsoft.com/kb/824126}, 
@@ -1627,15 +2422,15 @@ Recovery Storage Group. Exchange will redirect the restore to the
 Recovery Storage Group automatically.
 Then run the restore.
 
-\subsection{Restoring on Microsoft Server 2007}
+\subsubsection{Restoring on Microsoft Server 2007}
 Apparently the {\bf Exmerge} program no longer exists in Microsoft Server
-2007, and henc you use a new proceedure for recovering a single mail box.
-This procedure is ducomented by Microsoft at:
+2007, and hence you use a new procedure for recovering a single mail box.
+This procedure is documented by Microsoft at:
 \elink{http://technet.microsoft.com/en-us/library/aa997694.aspx}{http://technet.microsoft.com/en-us/library/aa997694.aspx},
 and involves using the {\bf Restore-Mailbox} and {\bf
-Get-MailboxStatistics} shell commands.
+Get-Mailbox Statistics} shell commands.
 
-\subsection{Caveats}
+\subsubsection{Caveats}
 This plugin is still being developed, so you should consider it
 currently in BETA test, and thus use in a production environment
 should be done only after very careful testing.
@@ -1669,7 +2464,7 @@ estimate} command, and so anything that would be backed up by the plugin
 will not be added to the estimate total that is displayed.
 
 
-\section{libdbi Framework}
+\subsection{libdbi Framework}
 \index[general]{libdbi Framework}
 As a general guideline, Bacula has support for a few catalog database drivers
 (MySQL, PostgreSQL, SQLite)
@@ -1747,10 +2542,10 @@ following packages are needed:
  You can download them and compile them on your system or install the packages
  from your OS distribution.
 
-\section{Console Command Additions and Enhancements}
+\subsection{Console Command Additions and Enhancements}
 \index[general]{Console Additions}                                 
 
-\subsection{Display Autochanger Content}
+\subsubsection{Display Autochanger Content}
 \index[general]{StatusSlots}
 
 The {\bf status slots storage=\lt{}storage-name\gt{}} command displays
@@ -1771,7 +2566,7 @@ If you an asterisk ({\bf *}) appears after the slot number, you must run an
 {\bf update slots} command to synchronize autochanger content with your
 catalog.
 
-\subsection{list joblog job=xxx or jobid=nnn}
+\subsubsection{list joblog job=xxx or jobid=nnn}
 \index[general]{list joblog}
 A new list command has been added that allows you to list the contents
 of the Job Log stored in the catalog for either a Job Name (fully qualified)
@@ -1787,7 +2582,7 @@ such as:
 
 In your Director's {\bf Messages} resource.
 
-\subsection{Use separator for multiple commands}
+\subsubsection{Use separator for multiple commands}
 \index[general]{Command Separator}
   When using bconsole with readline, you can set the command separator with 
   \textbf{@separator} command to one
@@ -1796,7 +2591,7 @@ In your Director's {\bf Messages} resource.
   !$%&'()*+,-/:;<>?[]^`{|}~
 \end{verbatim}
 
-\subsection{Deleting Volumes}
+\subsubsection{Deleting Volumes}
 The delete volume bconsole command has been modified to
 require an asterisk (*) in front of a MediaId otherwise the
 value you enter is a taken to be a Volume name. This is so that
@@ -1806,7 +2601,7 @@ assumed that all input that started with a number was a MediaId.
 This new behavior is indicated in the prompt if you read it
 carefully.
 
-\section{Bare Metal Recovery}
+\subsection{Bare Metal Recovery}
 The old bare metal recovery project is essentially dead. One
 of the main features of it was that it would build a recovery
 CD based on the kernel on your system. The problem was that
@@ -1850,10 +2645,10 @@ The disadvantages are:
 The documentation and the code can be found in the {\bf rescue} package
 in the directory {\bf linux/usb}.
 
-\section{Miscellaneous}
+\subsection{Miscellaneous}
 \index[general]{Misc New Features}
 
-\subsection{Allow Mixed Priority = \lt{}yes\vb{}no\gt{}}
+\subsubsection{Allow Mixed Priority = \lt{}yes\vb{}no\gt{}}
 \index[general]{Allow Mixed Priority}
    This directive is only implemented in version 2.5 and later.  When
    set to {\bf yes} (default {\bf no}), this job may run even if lower
@@ -1869,7 +2664,7 @@ in the directory {\bf linux/usb}.
    the running jobs finishes.  However, new priority 10 jobs will not
    be run until the priority 5 job has finished.
 
-\subsection{Bootstrap File Directive -- FileRegex}
+\subsubsection{Bootstrap File Directive -- FileRegex}
 \index[general]{Bootstrap File Directive}
   {\bf FileRegex} is a new command that can be added to the bootstrap
   (.bsr) file.  The value is a regular expression.  When specified, only
@@ -1892,7 +2687,7 @@ in the directory {\bf linux/usb}.
   Bootstrap records written to /tmp/regress/working/zog4-dir.restore.1.bsr
 \end{verbatim}
 
-\subsection{Bootstrap File Optimization Changes}
+\subsubsection{Bootstrap File Optimization Changes}
 In order to permit proper seeking on disk files, we have extended the bootstrap
 file format to include a {\bf VolStartAddr} and {\bf VolEndAddr} records. Each
 takes a 64 bit unsigned integer range (i.e. nnn-mmm) which defines the start
@@ -1904,7 +2699,7 @@ may read completely to the end of a disk volume during a restore.  With the new
 format (automatically generated by the new Director), restores will seek
 properly and stop reading the volume when all the files have been restored.
 
-\subsection{Solaris ZFS/NFSv4 ACLs}
+\subsubsection{Solaris ZFS/NFSv4 ACLs}
 This is an upgrade of the previous Solaris ACL backup code
 to the new library format, which will backup both the old
 POSIX(UFS) ACLs as well as the ZFS ACLs.
@@ -1914,7 +2709,7 @@ The new code can also restore POSIX(UFS) ACLs to a ZFS filesystem
 be used to transfer from UFS to ZFS filesystems.
 
 
-\subsection{Virtual Tape Emulation}
+\subsubsection{Virtual Tape Emulation}
 \index[general]{Virtual Tape Emulation}
 We now have a Virtual Tape emulator that allows us to run though 99.9\% of
 the tape code but actually reading and writing to a disk file. Used with the
@@ -1924,7 +2719,7 @@ by using {\bf Device Type = vtape} in the Storage daemon's Device
 directive. This feature is only implemented on Linux machines and should not be
 used for production.
 
-\subsection{Bat Enhancements}
+\subsubsection{Bat Enhancements}
 \index[general]{Bat Enhancements}
 Bat (the Bacula Administration Tool) GUI program has been significantly
 enhanced and stabilized. In particular, there are new table based status 
@@ -1935,7 +2730,7 @@ GUI handling. Note, you {\bf must} use a the bat that is distributed with
 the Director you are using otherwise the communications protocol will not
 work.
 
-\subsection{RunScript Enhancements}
+\subsubsection{RunScript Enhancements}
 \index[general]{RunScript Enhancements}
 The {\bf RunScript} resource has been enhanced to permit multiple
 commands per RunScript.  Simply specify multiple {\bf Command} directives
@@ -1963,17 +2758,17 @@ carefully tested and debugged and is known to easily crash the Director.
 We would appreciate feedback.  Due to the recursive nature of this command, we
 may remove it before the final release.
 
-\subsection{Status Enhancements}
+\subsubsection{Status Enhancements}
 \index[general]{Status Enhancements}
 The bconsole {\bf status dir} output has been enhanced to indicate
 Storage daemon job spooling and despooling activity.
 
-\subsection{Connect Timeout}
+\subsubsection{Connect Timeout}
 \index[general]{Connect Timeout}
 The default connect timeout to the File
 daemon has been set to 3 minutes. Previously it was 30 minutes.
 
-\subsection{ftruncate for NFS Volumes}
+\subsubsection{ftruncate for NFS Volumes}
 \index[general]{ftruncate for NFS Volumes}
 If you write to a Volume mounted by NFS (say on a local file server),
 in previous Bacula versions, when the Volume was recycled, it was not
@@ -1982,13 +2777,13 @@ truncate). This is now corrected in the new version because we have
 written code (actually a kind user) that deletes and recreates the Volume,
 thus accomplishing the same thing as a truncate.
 
-\subsection{Support for Ubuntu}
+\subsubsection{Support for Ubuntu}
 The new version of Bacula now recognizes the Ubuntu (and Kubuntu)
 version of Linux, and thus now provides correct autostart routines.
 Since Ubuntu officially supports Bacula, you can also obtain any
 recent release of Bacula from the Ubuntu repositories.
 
-\subsection{Recycle Pool = \lt{}pool-name\gt{}}
+\subsubsection{Recycle Pool = \lt{}pool-name\gt{}}
 \index[general]{Recycle Pool}
 The new \textbf{RecyclePool} directive defines to which pool the Volume will
 be placed (moved) when it is recycled. Without this directive, a Volume will
@@ -1997,21 +2792,21 @@ moved automatically to any existing pool during a recycle. This directive is
 probably most useful when defined in the Scratch pool, so that volumes will
 be recycled back into the Scratch pool.
 
-\subsection{FD Version}
+\subsubsection{FD Version}
 \index[general]{FD Version}
 The File daemon to Director protocol now includes a version 
 number, which although there is no visible change for users, 
 will help us in future versions automatically determine
 if a File daemon is not compatible.
 
-\subsection{Max Run Sched Time = \lt{}time-period-in-seconds\gt{}}
+\subsubsection{Max Run Sched Time = \lt{}time-period-in-seconds\gt{}}
 \index[general]{Max Run Sched Time}
 The time specifies the maximum allowed time that a job may run, counted from
 when the job was scheduled. This can be useful to prevent jobs from running
 during working hours. We can see it like \texttt{Max Start Delay + Max Run
   Time}.
 
-\subsection{Max Wait Time = \lt{}time-period-in-seconds\gt{}}
+\subsubsection{Max Wait Time = \lt{}time-period-in-seconds\gt{}}
 \index[general]{Max Wait Time}
 Previous \textbf{MaxWaitTime} directives aren't working as expected, instead
 of checking the maximum allowed time that a job may block for a resource,
@@ -2021,14 +2816,14 @@ their job depending on the level. Now, they have to use
 \textbf{Incr/Diff/Full Max Run Time}.  \textbf{Incr/Diff/Full Max Wait Time}
 directives are now deprecated.
 
-\subsection{Incremental|Differential Max Wait Time = \lt{}time-period-in-seconds\gt{}} 
+\subsubsection{Incremental|Differential Max Wait Time = \lt{}time-period-in-seconds\gt{}} 
 \index[general]{Incremental Max Wait Time}
 \index[general]{Differential Max Wait Time}
 
 These directives have been deprecated in favor of
 \texttt{Incremental|Differential Max Run Time}.
 
-\subsection{Max Run Time directives}
+\subsubsection{Max Run Time directives}
 \index[general]{Max Run Time directives}
 Using \textbf{Full/Diff/Incr Max Run Time}, it's now possible to specify the
 maximum allowed time that a job can run depending on the level.
@@ -2036,7 +2831,7 @@ maximum allowed time that a job can run depending on the level.
 \addcontentsline{lof}{figure}{Job time control directives}
 \includegraphics{\idir different_time.eps}
 
-\subsection{Statistics Enhancements}
+\subsubsection{Statistics Enhancements}
 \index[general]{Statistics Enhancements}
 If you (or probably your boss) want to have statistics on your backups to
 provide some \textit{Service Level Agreement} indicators, you could use a few
@@ -2088,35 +2883,35 @@ Job {
 }
 \end{verbatim}
 
-\subsection{ScratchPool = \lt{}pool-resource-name\gt{}}
+\subsubsection{ScratchPool = \lt{}pool-resource-name\gt{}}
 \index[general]{ScratchPool}
 This directive permits to specify a specific \textsl{Scratch} pool for the
 current pool. This is useful when using multiple storage sharing the same
 mediatype or when you want to dedicate volumes to a particular set of pool.
 
-\subsection{Enhanced Attribute Despooling}
+\subsubsection{Enhanced Attribute Despooling}
 \index[general]{Attribute Despooling}
 If the storage daemon and the Director are on the same machine, the spool file
 that contains attributes is read directly by the Director instead of being
 transmitted across the network. That should reduce load and speedup insertion.
 
-\subsection{SpoolSize = \lt{}size-specification-in-bytes\gt{}}
+\subsubsection{SpoolSize = \lt{}size-specification-in-bytes\gt{}}
 \index[general]{SpoolSize}
 A new Job directive permits to specify the spool size per job. This is used
 in advanced job tunning. {\bf SpoolSize={\it bytes}}
 
-\subsection{MaxConsoleConnections = \lt{}number\gt{}}
-\index[general]{MaxConsoleConnections}
+\subsubsection{MaximumConsoleConnections = \lt{}number\gt{}}
+\index[general]{MaximumConsoleConnections}
 A new director directive permits to specify the maximum number of Console
 Connections that could run concurrently. The default is set to 20, but you may
 set it to a larger number.
 
-\subsection{VerId = \lt{}string\gt{}}
+\subsubsection{VerId = \lt{}string\gt{}}
 \index[general]{VerId}
 A new director directive permits to specify a personnal identifier that will be
 displayed in the \texttt{version} command.
 
-\subsection{dbcheck enhancements}
+\subsubsection{dbcheck enhancements}
 \index[general]{dbcheck enhancements}
 If you are using Mysql, dbcheck will now ask you if you want to create
 temporary indexes to speed up orphaned Path and Filename elimination. 
@@ -2139,20 +2934,20 @@ text based format. This is useful to backup it in a secure way.
 
 You can now specify the database connection port in the command line.
 
-\subsection{{-}{-}docdir configure option}
+\subsubsection{{-}{-}docdir configure option}
 \index[general]{{-}{-}docdir configure option}
 You can use {-}{-}docdir= on the ./configure command to
 specify the directory where you want Bacula to install the
 LICENSE, ReleaseNotes, ChangeLog, ... files.   The default is 
 {\bf /usr/share/doc/bacula}.
       
-\subsection{{-}{-}htmldir configure option}
+\subsubsection{{-}{-}htmldir configure option}
 \index[general]{{-}{-}htmldir configure option}
 You can use {-}{-}htmldir= on the ./configure command to
 specify the directory where you want Bacula to install the bat html help
 files. The default is {\bf /usr/share/doc/bacula/html}
 
-\subsection{{-}{-}with-plugindir configure option}
+\subsubsection{{-}{-}with-plugindir configure option}
 \index[general]{{-}{-}plugindir configure option}
 You can use {-}{-}plugindir= on the ./configure command to
 specify the directory where you want Bacula to install