]> git.sur5r.net Git - bacula/docs/blobdiff - docs/manuals/en/main/newfeatures.tex
Add new messageid documentation
[bacula/docs] / docs / manuals / en / main / newfeatures.tex
index 03a498ccdd1e4cf92ef9da358fcceec5043e28e0..35f23f559e5b1d52df3cde868d02bdf80d0b93dc 100644 (file)
-\chapter{Community Bacula New Features in 5.1.x}
+\chapter{New Features in 9.0.0}
+Note: The first beta versions are released as version 7.9.0, and the first
+production release will be 9.0.0. 
+
+\subsection{Maximum Virtual Full Interval Option}
+Two new director directives have been added:
+
+\begin{verbatim}
+   Max Virtual Full Interval
+and
+   Virtual Full Backup Pool
+\end(verbatime)
+
+The {\bf Max Virtual Full Interval} directive should behave similar to the
+{\bf Max Full Interval}, but for Virtual Full jobs.  If Bacula sees that
+there has not been a Full backup in Max Virtual Full Interval time then it
+will upgrade the job to Virtual Full.  If you have both {\bf Max Full
+Interval} and {\bf Max Virtual Full Interval} set then Max Full Interval
+should take precedence.
+
+The {\bf Virtual Full Backup Pool} directive allows one to change the pool
+as well.  You probably want to use these two directives in
+conjunction with each other but that may depend on the specifics of one's
+setup.  If you set the {\bf Max Full Interval} without setting {\bf Max
+Virtual Full Interval} then Bacula will use whatever the "default" pool is
+set to which is the same behavior as with the Max Full Interval.
+
+\subsection{Progressive Virtual Full}
+
+In Bacula version 9.0.0, we have added a new Directive named {\bf Backups To Keep} that
+permits you to implement Progressive Virtual Fulls within Bacula. Sometimes
+this feature is known as Incremental Forever with Consolidation.
+
+\smallskip
+
+\begin{figure}[htbp]
+  \centering
+  \includegraphics[width=.8\linewidth]{pvf-slidingbackups}
+  \caption{Backup Sequence Slides Forward One Day, Each Day}
+  \label{fig:slidingbackups}
+\end{figure}
+
+To implement the Progressive Virtual Full feature, simply add the
+{\bf Backups To Keep} directive to your Virtual Full backup Job resource.
+The value specified on the directive indicates the number of backup jobs
+that should not be merged into the Virtual Full (i.e.  the number of backup
+jobs that should remain after the Virtual Full has completed.  The default
+is zero, which reverts to a standard Virtual Full than consolidates all the
+backup jobs that it finds.
+
+\subsubsection{Backups To Keep Directive}
+The new {\bf BackupsToKeep} directive is specified in the Job Resource and
+has the form:
+
+\begin{verbatim}
+   Backups To Keep = 30
+\end{verbatim}
+
+where the value (30 in the above figure and example) is the number of
+backups to retain.  When this directive is present during a Virtual Full
+(it is ignored for other Job types), it will look for the most recent Full
+backup that has more subsequent backups than the value specified.  In the
+above example the Job will simply terminate unless there is a Full back
+followed by at least 31 backups of either level Differential or
+Incremental.
+
+\smallskip
+Assuming that the last Full backup is followed by 32 Incremental backups, a
+Virtual Full will be run that consolidates the Full with the first two
+Incrementals that were run after the Full.  The result is that you will end
+up with a Full followed by 30 Incremental backups. The Job Resource
+in {\bf bacula-dir.conf} to accomplish this would be:
+
+\begin{verbatim}
+   Job {
+     Name = "VFull"
+     Type = Backup
+     Level = VirtualFull
+     Client = "my-fd"
+     File Set = "FullSet"
+     Accurate = Yes
+     Backups To Keep = 10
+   }
+\end{verbatim}
+
+\subsubsection{Delete Consolidated Jobs}
+The new directive {\bf Delete Consolidated Jobs} expects a {\bf yes}
+or {\bf no} value that if set to {\bf yes} will cause any old Job that is
+consolidated during a Virtual Full to be deleted. In the example above
+we saw that a Full plus one other job (either an Incremental or
+Differential) were consolidated into a new Full backup. The original Full
+plus the other Job consolidated will be deleted. The default value is
+{\bf no}.
+
+\subsubsection{Virtual Full Compatibility}
+Virtual Full as well as Progressive Virtual Full works with any
+standard backup Job.
+
+\smallskip
+However, it should be noted that Virtual Full jobs are not compatible with
+any plugins that you may be using.
+
+\subsection{TapeAlert Enhancements}
+There are some significant enhancements to the TapeAlert feature of Bacula.
+Several directives are used slightly differently, which unfortunately
+causes a compatibility problem with the old TapeAlert implementation.
+Consequently, if you are already using TapeAlert, you must modify your
+{\bf bacula-sd.conf} in order for Tape Alerts to work.  See below
+for the details ...
+
+\subsubsection{What is New}
+First, you must define a \textbf{Alert Command} directive in the Device
+resource that calls the new \textbf{tapealert} script that is installed in
+the scripts directory (normally: /opt/bacula/scripts).  It is defined as
+follows:
+
+\begin{verbatim}
+Device {
+  Name = ...
+  Archive Device = /dev/nst0
+  Alert Command = "/opt/bacula/scripts/tapealert %l"
+  Control Device = /dev/sg1 # must be SCSI ctl for /dev/nst0
+  ...
+}
+\end{verbatim}
+
+In addition the \textbf{Control Device} directive in the Storage Daemon's
+conf file must be specified in each Device resource to permit Bacula to
+detect tape alerts on a specific devices (normally only tape devices).
+
+Once the above mentioned two directives (Alert Command and Control Device)
+are in place in each of your Device resources, Bacula will check for tape
+alerts at two points:
+
+\begin{itemize}
+\item After the Drive is used and it becomes idle.
+\item After each read or write error on the drive.
+\end{itemize}
+
+At each of the above times, Bacula will call the new \textbf{tapealert}
+script, which uses the \textbf{tapeinfo} program.  The tapeinfo utility is
+part of the apt sg3-utils and rpm sg3\_utils packages that must be
+installed on your systems.  Then after each alert that Bacula finds for
+that drive, Bacula will emit a Job message that is either INFO, WARNING, or
+FATAL depending on the designation in the Tape Alert published by the T10
+Technical Committee on SCSI Storage Interfaces (www.t10.org).  For the
+specification, please see: www.t10.org/ftp/t10/document.02/02-142r0.pdf
+
+\smallskip
+As a somewhat extreme example, if tape alerts 3, 5, and 39 are set, you
+will get the following output in your backup job.
+
+{\small
+  \begin{verbatim}
+     17-Nov 13:37 rufus-sd JobId 1: Error: block.c:287 
+     Write error at 0:17 on device "tape"
+     (/home/kern/bacula/k/regress/working/ach/drive0)
+     Vol=TestVolume001. ERR=Input/output error.
+
+     17-Nov 13:37 rufus-sd JobId 1: Fatal error: Alert:
+     Volume="TestVolume001" alert=3: ERR=The operation has stopped because
+     an error has occurred while reading or writing data which the drive
+     cannot correct.  The drive had a hard read or write error
+
+     17-Nov 13:37 rufus-sd JobId 1: Fatal error: Alert:
+     Volume="TestVolume001" alert=5: ERR=The tape is damaged or the drive
+     is faulty.  Call the tape drive supplier helpline.  The drive can no
+     longer read data from the tape
+
+     17-Nov 13:37 rufus-sd JobId 1: Warning: Disabled Device "tape"
+     (/home/kern/bacula/k/regress/working/ach/drive0) due to tape alert=39.
+
+     17-Nov 13:37 rufus-sd JobId 1: Warning: Alert: Volume="TestVolume001"
+     alert=39: ERR=The tape drive may have a fault.  Check for availability
+     of diagnostic information and run extended diagnostics if applicable.
+     The drive may have had a failure which may be identified by stored
+     diagnostic information or by running extended diagnostics (eg Send
+     Diagnostic).  Check the tape drive users manual for instructions on
+     running extended diagnostic tests and retrieving diagnostic data.
+
+  \end{verbatim}
+}
+
+Without the tape alert feature enabled, you would only get the first error
+message above, which is the error return Bacula received when it gets the
+error.  Notice also, that in the above output the alert number 5 is a
+critical error, which causes two things to happen.  First the tape drive is
+disabled, and second the Job is failed.
+
+\smallskip
+If you attempt to run another Job using the Device that has been disabled,
+you will get a message similar to the following:
+
+\begin{verbatim}
+17-Nov 15:08 rufus-sd JobId 2: Warning:
+     Device "tape" requested by DIR is disabled.
+\end{verbatim}
+
+and the Job may be failed if no other drive can be found.
+
+\smallskip
+Once the problem with the tape drive has been corrected, you can
+clear the tape alerts and re-enable the device with the Bacula bconsole
+command such as the following:
+
+\begin{verbatim}
+  enable Storage=Tape
+\end{verbatim}
+
+Note, when you enable the device, the list of prior tape alerts for that
+drive will be discarded.
+
+\smallskip
+Since is is possible to miss tape alerts, Bacula maintains a temporary list
+of the last 8 alerts, and each time Bacula calls the \textbf{tapealert}
+script, it will keep up to 10 alert status codes. Normally there will only
+be one or two alert errors for each call to the tapealert script.
+
+\smallskip
+Once a drive has one or more tape alerts, you can see them by using the
+bconsole status command as follows:
+\begin{verbatim}
+status storage=Tape
+\end{verbatim}
+which produces the following output:
+\begin{verbatim}
+Device Vtape is "tape" (/home/kern/bacula/k/regress/working/ach/drive0)
+mounted with:
+    Volume:      TestVolume001
+    Pool:        Default
+    Media type:  tape
+    Device is disabled. User command.
+    Total Bytes Read=0 Blocks Read=1 Bytes/block=0
+    Positioned at File=1 Block=0
+    Critical Alert: at 17-Nov-2016 15:08:01 Volume="TestVolume001"
+       alert=Hard Error
+    Critical Alert: at 17-Nov-2016 15:08:01 Volume="TestVolume001"
+       alert=Read Failure
+    Warning Alert: at 17-Nov-2016 15:08:01 Volume="TestVolume001"
+       alert=Diagnostics Required
+\end{verbatim}
+if you want to see the long message associated with each of the alerts,
+simply set the debug level to 10 or more and re-issue the status command:
+\begin{verbatim}
+setdebug storage=Tape level=10
+status storage=Tape
+\end{verbatim}
+\begin{verbatim}
+    ...
+    Critical Alert: at 17-Nov-2016 15:08:01 Volume="TestVolume001"
+      flags=0x0 alert=The operation has stopped because an error has occurred
+       while reading or writing data which the drive cannot correct. The drive had
+       a hard read or write error
+    Critical Alert: at 17-Nov-2016 15:08:01 Volume="TestVolume001"
+       flags=0x0 alert=The tape is damaged or the drive is faulty. Call the tape
+       drive supplier helpline.  The drive can no longer read data from the tape
+    Warning Alert: at 17-Nov-2016 15:08:01 Volume="TestVolume001" flags=0x1
+       alert=The tape drive may have a fault. Check for availability of diagnostic
+       information and run extended diagnostics if applicable.   The drive may
+       have had a failure which may be identified by stored diagnostic information
+       or by running extended diagnostics (eg Send Diagnostic). Check the tape
+       drive users manual for instructions on running extended diagnostic tests
+       and retrieving diagnostic data.
+    ...
+\end{verbatim}
+The next time you \textbf{enable} the Device by either using
+\textbf{bconsole} or you restart the Storage Daemon, all the saved alert
+messages will be discarded.
+
+\subsubsection{Handling of Alerts}
+Tape Alerts numbered 7,8,13,14,20,22,52,53, and 54 will cause Bacula to
+disable the current Volume.
+
+\smallskip
+Tape Alerts numbered 14,20,29,30,31,38, and 39 will cause Bacula to disable
+the drive.
+
+\smallskip
+Please note certain tape alerts such as 14 have multiple effects (disable
+the Volume and disable the drive).
+
+\subsection{New Console ACL Directives}
+By default, if a Console ACL directive is not set, Bacula will assume that the
+ACL list is empty. If the current Bacula Director configuration uses restricted
+Consoles and allows restore jobs, it is mandatory to configure the new
+directives.
+
+\subsubsection{DirectoryACL}
+\index[dir]{Directive!DirectoryACL}
+
+This directive is used to specify a list of directories that can be
+accessed by a restore session.  Without this directive, a restricted
+console cannot restore any file.  Multiple directories names may be
+specified by separating them with commas, and/or by specifying multiple
+DirectoryACL directives.  For example, the directive may be specified as:
+
+\footnotesize
+\begin{verbatim}
+    DirectoryACL = /home/bacula/, "/etc/", "/home/test/*"
+\end{verbatim}
+\normalsize
+
+With the above specification, the console can access the following
+directories:
+\begin{itemize}
+\item \texttt{/etc/password}
+\item \texttt{/etc/group}
+\item \texttt{/home/bacula/.bashrc}
+\item \texttt{/home/test/.ssh/config}
+\item \texttt{/home/test/Desktop/Images/something.png}
+\end{itemize}
+
+But not to the following files or directories:
+\begin{itemize}
+\item \texttt{/etc/security/limits.conf}
+\item \texttt{/home/bacula/.ssh/id\_dsa.pub}
+\item \texttt{/home/guest/something}
+\item \texttt{/usr/bin/make}
+\end{itemize}
+
+If a directory starts with a Windows pattern (ex: c:/), Bacula will
+automatically ignore the case when checking directory names.
+
+\subsection{New Bconsole ``list''  Command Behavior}
+
+The bconsole \texttt{list} commands can now be used safely from a
+restricted bconsole session.  The information displayed will respect the
+ACL configured for the Console session.  For example, if a restricted
+Console has access to JobA, JobB and JobC, information about JobD will not
+appear in the \texttt{list jobs} command.
+
+\subsection{New Console ACL Directives}
+\index[dir]{Directive!BackupClientACL}
+It is now possible to configure a restricted Console to distinguish Backup
+and Restore job permissions.  The \texttt{BackupClientACL} can restrict
+backup jobs on a specific set of clients, while the
+\texttt{RestoreClientACL} can restrict restore jobs.
+
+{\small
+\begin{verbatim}
+# cat /opt/bacula/etc/bacula-dir.conf
+...
+
+Console {
+ Name = fd-cons             # Name of the FD Console
+ Password = yyy
+...
+ ClientACL = localhost-fd           # everything allowed
+ RestoreClientACL = test-fd         # restore only
+ BackupClientACL = production-fd    # backup only
+}
+\end{verbatim}
+}
+
+The \texttt{ClientACL} directive takes precedence over the
+\texttt{RestoreClientACL} and the \texttt{BackupClientACL}. In the Console
+resource resource above, it means that the bconsole linked to the Console{}
+named "fd-cons" will be able to run:
+
+\begin{itemize}
+\item backup and restore for ``localhost-fd''
+\item backup for ``production-fd''
+\item restore for ``test-fd''
+\end{itemize}
+
+At the restore time, jobs for client ``localhost-fd'', ``test-fd'' and
+``production-fd'' will be available.
+
+If \texttt{*all*} is set for \texttt{ClientACL}, backup and restore will be
+allowed for all clients, despite the use of \texttt{RestoreClientACL} or
+\texttt{"BackupClientACL}.
+
+\subsection{Client Initiated Backup}
+\label{sec:featurecib}
+A console program such as the new \texttt{tray-monitor} or
+\texttt{bconsole} can now be configured to connect a File Daemon.  There
+are many new features available (see the New Tray Monitor section below),
+but probably the most important is the ability for the user to initiate a
+backup of his own machine.  The connection established by the FD to the
+Director for the backup will be used by the Director for the backup, thus
+not only can clients (users) initiate backups, but a File Daemon that is
+NATed (cannot be reached by the Director) can now be backed up without
+using advanced tunneling techniques providing that the File Daemon can
+connect to the Director.
+
+\smallskip
+The flow of information is shown in the picture below:
+\bsysimageH{nat}{Client Initiated Backup Network Flow}{fig:nat3}
+
+\newpage
+\subsection{Configuring Client Initiated Backup}
+\smallskip
+In order to ensure security, there are a number of new directives
+that must be enabled in the new \texttt{tray-monitor}, the File
+Daemon and in the Director.
+A typical configuration might look like the following:
+
+{\small
+\begin{verbatim}
+# cat /opt/bacula/etc/bacula-dir.conf
+...
+
+Console {
+ Name = fd-cons             # Name of the FD Console
+ Password = yyy
+
+ # These commands are used by the tray-monitor, it is possible to restrict
+ CommandACL = run, restore, wait, .status, .jobs, .clients
+ CommandACL = .storages, .pools, .filesets, .defaults, .estimate
+
+ # Adapt for your needs
+ jobacl = *all*
+ poolacl = *all*
+ clientacl = *all*
+ storageacl = *all*
+ catalogacl = *all*
+ filesetacl = *all*
+}
+\end{verbatim}
+}
+
+{\small
+\begin{verbatim}
+# cat /opt/bacula/etc/bacula-fd.conf
+...
+
+Console {              # Console to connect the Director
+  Name = fd-cons
+  DIRPort = 9101
+  address = localhost
+  Password = "yyy"
+}
+
+Director {
+  Name = remote-cons   # Name of the tray monitor/bconsole
+  Password = "xxx"     # Password of the tray monitor/bconsole
+  Remote = yes         # Allow to use send commands to the Console defined
+}
+\end{verbatim}
+}
+
+{\small
+\begin{verbatim}
+cat /opt/bacula/etc/bconsole-remote.conf
+....
+
+Director {
+  Name = localhost-fd
+  address = localhost        # Specify the FD address
+  DIRport = 9102             # Specify the FD Port
+  Password = "notused"
+}
+
+Console {
+  Name = remote-cons         # Name used in the auth process
+  Password = "xxx"
+}
+\end{verbatim}
+}
+
+{\small
+\begin{verbatim}
+cat ~/.bacula-tray-monitor.conf
+Monitor {
+  Name = remote-cons
+}
+
+Client {
+  Name = localhost-fd
+  address = localhost     # Specify the FD address
+  Port = 9102             # Specify the FD Port
+  Password = "xxx"
+  Remote = yes
+}
+\end{verbatim}
+}
+
+\bsysimageH{conf-nat}{Relation Between Resources (bconsole)}{fig:nat}
+\bsysimageH{conf-nat2}{Relation Between Resources (tray-monitor)}{fig:nat2}
+
+\medskip
+A more detailed description with complete examples is available in
+chapter~\ref{TrayMonitorChapter}.
+
+\subsection{New Tray Monitor}
+
+A new tray monitor has been added to the 9.0 release, the tray monitor offers
+the following features:
+
+\begin{itemize}
+\item Director, File and Storage Daemon status page
+\item Support for the Client Initiated Backup protocol (See
+  \vref{sec:featurecib}). To use the Client Initiated Backup option from the
+  tray monitor, the Client option ``Remote'' should be checked in the
+  configuration (Fig \vref{fig:tray2}).
+\item Wizard to run new job (Fig \vref{fig:tray4})
+\item Display an estimation of the number of files and the size of the next
+  backup job (Fig \vref{fig:tray4})
+\item Ability to configure the tray monitor configuration file directly from
+  the GUI (Fig \vref{fig:tray2})
+\item Ability to monitor a component and adapt the tray monitor task bar icon
+  if a jobs are running.
+\item TLS Support
+\item Better network connection handling
+\item Default configuration file is stored under \texttt{\$HOME/.bacula-tray-monitor.conf}
+\item Ability to ``schedule'' jobs
+\item Available on Linux and Windows platforms
+\end{itemize}
+
+% \medskip
+% Please see chapter \ref{TrayMonitorChapter} for more details about this new
+% functionality.
+
+
+\begin{figure}[htbp]
+  \centering
+  \includegraphics[width=0.8\linewidth]{tray-monitor-status}
+  \caption{Tray Monitor Status}
+  \label{fig:tray0}
+\end{figure}
+
+\begin{figure}[htbp]
+  \centering
+  \includegraphics[width=0.9\linewidth]{tray-monitor-conf-fd}
+  \caption{Tray Monitor Client Configuration}
+  \label{fig:tray2}
+\end{figure}
+
+\begin{figure}[htbp]
+  \centering
+  \includegraphics[width=0.8\linewidth]{tray-monitor-run1}
+  \smallskip
+  \includegraphics[width=0.8\linewidth]{tray-monitor-run2}
+  \caption{Tray Monitor Run a Job}
+  \label{fig:tray4}
+\end{figure}
+
+\subsection{Schedule Jobs via the Tray Monitor}
+
+The Tray Monitor can scan periodically a specific directory ``Command
+Directory'' and process ``*.bcmd'' files to find jobs to run.
+
+The format of the ``file.bcmd'' command file is the following:
+\begin{verbatim}
+<component name>:<run command>
+<component name>:<run command>
+...
+
+<component name> = string
+<run command>    = string (bconsole command line)
+\end{verbatim}
+
+For example:
+\begin{verbatim}
+localhost-fd: run job=backup-localhost-fd level=full
+localhost-dir: run job=BackupCatalog
+\end{verbatim}
+
+The command file should contain at least one command. The component specified
+in the first part of the command line should be defined in the tray
+monitor. Once the command file is detected by the tray monitor, a popup is
+displayed to the user and it is possible for the user to cancel the job directly.
+
+\smallskip{}
+
+The file can be created with tools such as ``cron'' or the ``task scheduler''
+on Windows. It is possible to verify the network connection at that time to
+avoid network errors.
+
+\begin{verbatim}
+#!/bin/sh
+if ping -c 1 director &> /dev/null
+then
+   echo "my-dir: run job=backup" > /path/to/commands/backup.bcmd
+fi
+\end{verbatim}
+
+%\bsysimageH{tray-monitor-status}{Tray Monitor Status}{fig:tray0}
+%\bsysimageH{tray-monitor1}{Tray Monitor Configuration}{fig:tray1}
+%\bsysimageH{tray-monitor-conf-fd}{Tray Monitor Client Configuration}{fig:tray2}
+%\bsysimageH{tray-monitor-conf-dir}{Tray Monitor Director Configuration}{fig:tray3}
+%\bsysimageH{tray-monitor-run1}{Tray Monitor Run new Job}{fig:tray4}
+% find a way to group them together
+%\bsysimageH{tray-monitor-run2}{Tray Monitor Setup new Job}{fig:tray5}
+
+
+\subsection{Accurate Option for Verify ``Volume Data'' Job}
+
+Since Bacula version 8.4.1, it has been possible to have a Verify Job
+configured with \texttt{level=Data} that will reread all records from a job
+and optionally check the size and the checksum of all files.  Starting with
+
+\smallskip
+Bacula version 9.0, it is now possible to use the \texttt{accurate} option to check
+catalog records at the same time.  When using a Verify job with
+\texttt{level=Data} and \texttt{accurate=yes} can replace the
+\texttt{level=VolumeToCatalog} option.
+
+For more information on how to setup a Verify Data job, see
+\vref{label:verifyvolumedata}.
+
+To run a Verify Job with the \texttt{accurate} option, it is possible to set
+the option in the Job definition or set use the \texttt{accurate=yes} on the
+command line.
+
+\begin{verbatim}
+* run job=VerifyData jobid=10 accurate=yes
+\end{verbatim}
+
+\subsection{FileDaemon Saved Messages Resource Destination}
+
+It is now possible to send the list of all saved files to a Messages
+resource with the \texttt{saved} message type.  It is not recommended to
+send this flow of information to the director and/or the catalog when the
+client FileSet is pretty large.  To avoid side effects, the \texttt{all}
+keyword doesn't include the \texttt{saved} message type.  The
+\texttt{saved} message type should be explicitely set.
+
+\begin{verbatim}
+# cat /opt/bacula/etc/bacula-fd.conf
+...
+Messages {
+  Name = Standard
+  director = mydirector-dir = all, !terminate, !restored, !saved
+  append = /opt/bacula/working/bacula-fd.log = all, saved, restored
+}
+\end{verbatim}
+
+\subsection{Minor Enhancements}
+
+\subsubsection{New Bconsole ".estimate" Command}
+
+The new \texttt{.estimate} command can be used to get statistics about a
+job to run.  The command uses the database to approximate the size and the
+number of files of the next job.  On a PostgreSQL database, the command
+uses regression slope to compute values.  On SQLite or MySQL, where these
+statistical functions are not available, the command uses a simple
+``average'' estimation.  The correlation number is given for each value.
+
+{\small
+\begin{verbatim}
+*.estimate job=backup
+level=I
+nbjob=0
+corrbytes=0
+jobbytes=0
+corrfiles=0
+jobfiles=0
+duration=0
+job=backup
+
+*.estimate job=backup level=F
+level=F
+nbjob=1
+corrbytes=0
+jobbytes=210937774
+corrfiles=0
+jobfiles=2545
+duration=0
+job=backup
+\end{verbatim}
+}
+
+\subsubsection{Traceback and Lockdump}
+
+After the reception of a signal, \texttt{traceback} and \texttt{lockdump}
+information are now stored in the same file.
+
+\subsection{Bconsole ``list jobs'' command options}
+
+The \texttt{list jobs} bconsole command now accepts new command line options:
+
+\begin{itemize}
+\item \textbf{joberrors} Display jobs with JobErrors
+\item \textbf{jobstatus=T} Display jobs with the specified status code
+\item \textbf{client=cli} Display jobs for a specified client
+\item \textbf{order=asc/desc} Change the output format of the job list. The
+  jobs are sorted by start time and JobId, the sort can use ascendant (asc) or
+  descendant (desc) (default) value.
+\end{itemize}
+
+\subsection{Minor Enhancements}
+
+\subsubsection{New Bconsole "Tee All" Command}
+
+The ``@tall'' command allows logging all input/output from a console session.
+
+\begin{verbatim}
+*@tall /tmp/log
+*st dir
+...
+\end{verbatim}
+
+\subsection{Bconsole ``list jobs'' command options}
+
+The \texttt{list jobs} bconsole command now accepts new command line options:
+
+\begin{itemize}
+\item \textbf{joberrors} Display jobs with JobErrors
+\item \textbf{jobstatus=T} Display jobs with the specified status code
+\item \textbf{client=cli} Display jobs for a specified client
+\item \textbf{order=asc/desc} Change the output format of the job list. The
+  jobs are sorted by start time and JobId, the sort can use ascendant (asc) or
+  descendant (desc) (default) value.
+\end{itemize}
+
+\subsection{New Bconsole "Tee All" Command}
+
+The ``@tall'' command allows logging all input/output from a console session.
+
+\begin{verbatim}
+*@tall /tmp/log
+*st dir
+...
+\end{verbatim}
+
+\subsection{New Job Edit Codes \%I}
+In various places such as RunScripts, you have now access to \%I to get the
+JobId of the copy or migration job started by a migrate job.
+
+\begin{verbatim}
+Job {
+  Name = Migrate-Job
+  Type = Migrate
+  ...
+  RunAfter = "echo New JobId is %I"
+}
+\end{verbatim}
+
+
+\subsection*{.api version 2}
+
+In Bacula version 9.0 and later, we introduced a new .api version
+to help external tools to parse various Bacula bconsole output.
+
+% waa - 20150317 - this section needs just a little more to explain what the "43" in "s43" mean. Perhaps
+%                  if it is not a good place to list the possibilities here, then list where a reference
+%                  is. Also, I think   .api 2 ...   Means "use API version 2"  but that should be stated too
+
+The \texttt{api\_opts} option can use the following arguments:
+\begin{itemize}
+\item [C] Clear current options
+\item [tn] Use a specific time format (1 ISO format, 2 Unix Timestamp, 3 Default Bacula time format)
+\item [sn] Use a specific separator between items (new line by default).
+\item [Sn] Use a specific separator between objects (new line by default).
+\item [o] Convert all keywords to lowercase and convert all non \textsl{isalpha} characters to \_
+\end{itemize}
+
+% waa - 20150317 - I think there should either be more output listed here to give a better feeling 
+%                  or, perhaps another output listing for different .status commands
+
+\begin{verbatim}
+  .api 2 api_opts=t1s43S35
+  .status dir running
+==================================
+jobid=10
+job=AJob
+...
+\end{verbatim}
+
+\subsection*{New Debug Options}
+
+In Bacula version 9.0 and later, we introduced a new \texttt{options} parameter for
+the \texttt{setdebug} bconsole command.
+
+\smallskip{}
+
+The following arguments to the new \texttt{option} parameter are available to control debug functions.
+
+\begin{itemize}
+\item [0] Clear debug flags
+\item [i] Turn off, ignore bwrite() errors on restore on File Daemon
+\item [d] Turn off decomp of BackupRead() streams on File Daemon
+\item [t] Turn on timestamps in traces
+\item [T] Turn off timestamps in traces
+
+% waa - 20150306 - does this "c" item mean to say "Truncate trace file if one exists, otherwise append to it"   ???
+\item [c] Truncate trace file if trace file is activated
+
+\item [l] Turn on recoding events on P() and V()
+\item [p] Turn on the display of the event ring when doing a bactrace
+\end{itemize}
+
+\smallskip{}
+
+The following command will enable debugging for the File Daemon, truncate an existing trace file,
+and turn on timestamps when writing to the trace file.
+
+\begin{verbatim}
+* setdebug level=10 trace=1 options=ct fd
+\end{verbatim}
+
+\smallskip{}
+
+It is now possible to use a \textsl{class} of debug messages called \texttt{tags}
+to control the debug output of Bacula daemons.
+
+\begin{itemize}
+\item [all] Display all debug messages
+\item [bvfs] Display BVFS debug messages
+\item [sql] Display SQL related debug messages
+\item [memory] Display memory and poolmem allocation messages
+\item [scheduler] Display scheduler related debug messages
+\end{itemize}
+
+\begin{verbatim}
+* setdebug level=10 tags=bvfs,sql,memory
+* setdebug level=10 tags=!bvfs
+
+# bacula-dir -t -d 200,bvfs,sql
+\end{verbatim}
+
+The \texttt{tags} option is composed of a list of tags. Tags are separated by
+``,'' or ``+'' or ``-'' or ``!''. To disable a specific tag, use ``-'' or ``!''
+in front of the tag. Note that more tags are planned for future versions.
+
+%\LTXtable{\linewidth}{table_debugtags}
+
+\subsection{Communication Line Compression}
+Bacula version 9.0.0 and later now includes communication
+line compression. It is turned on by default, and if the
+two Bacula components (Dir, FD, SD, bconsole) are both
+version 6.6.0 or greater, communication line compression)
+will be enabled, by default. If for some reason, you do not want
+communication line compression, you may disable it with the
+following directive:
+
+\begin{verbatim}
+Comm Compression = no
+\end{verbatim}
+
+This directive can appear in the following resources:
+\begin{verbatim}
+bacula-dir.conf: Director resource
+bacula-fd.conf Client (or FileDaemon) resource
+bacula-sd.conf: Storage resource
+bconsole.conf: Console resource
+bat.conf: Console resource
+\end{verbatim}
+
+\smallskip
+In many cases, the volume of data transmitted across the
+communications line can be reduced by a factor of three when
+this directive is enabled (default) In the case that the compression is not
+effective, Bacula turns it off on a.  record by record basis.
+
+\smallskip
+If you are backing up data that is already compressed the comm line
+compression will not be effective, and you are likely
+to end up with an average compression ratio that is very small.
+In this case, Bacula reports {\bf None} in the Job report. 
+
+\subsection{Deduplication Optimized Volumes}
+This version of Bacula includes a new alternative (or additional)
+volume format that optimizes the placement of files so
+that an underlying deduplicating filesystem such as ZFS
+can optimally deduplicate the backup data that is written
+by Bacula. These are called Deduplication Optimized Volumes
+or Aligned Volumes for short. The details of how to use this
+feature and its considerations are in the
+Deduplication Optimized Volumes whitepaper.
+
+\smallskip
+This feature is available if you have Bacula Community produced binaries
+and the Aligned Volumes plugin.
+
+\subsection{New Message Identification Format}
+We are starting to add unique message indentifiers to each message (other
+than debug and the Job report) that Bacula prints.  At the current time
+only two files in the Storage Daemon have these message identifiers and 
+over time with subsequent releases we will modify all messages.
+
+\smallskip
+The message identifier will be kept unique for each message and once
+assigned to a message it will not change even if the text of the message
+changes.  This means that the message identifier will be the same no matter
+what language the text is displayed in, and more importantly, it will allow
+us to make listing of the messages with in some cases, additional
+explanation or instructions on how to correct the problem.  All this will
+take several years since it is a lot of work and requires some new programs
+that are not yet written to manage these message identifiers.
+
+\smallskip
+The format of the message identifier is:
+
+\begin{verbatim}
+   [AAnnnn]
+\end{verbatim}
+where A is an upper case character and nnnn is a four digit number, where
+the first charcter indicates the software component (daemon); the second
+letter indicates the severity, and the number is unique for a given
+componet and severity.
+
+\smallskip
+For example:
+
+\begin{verbatim}
+   [SF0001]
+\end{verbatim}
+
+The first charcter representing the componend at the current time one of
+the following:
+
+\begin{verbatim}
+   S      Storage daemon
+   D      Director
+   F      File daemon
+\end{verbatim}
+
+\smallskip
+The second character representing the severity or level can be:
+
+\begin{verbatim}
+   A      Abort 
+   F      Fatal
+   E      Erropr
+   W      Warning
+   S      Security
+   I      Info
+   D      Debug
+   O      OK (i.e. operation completed normallly)
+\end{verbatim}
+
+So in the example above [SF0001] indicates it is a message id, because of
+the brackets and because it is at the beginning of the message, and that
+it was generated by the Storage daemon as a fatal error.
+\smallskip
+As mentioned above it will take some time to implement these message ids
+everywhere, and over time we may add more component letters and more
+severity levels as needed.
+
+
+\chapter{New Features in 7.4.0}
+This chapter presents the new features that have been added to
+the various versions of Bacula.
+
+\section{New Features in 7.4.3}
+\subsection{RunScripts}
+There are two new RunScript short cut directives implemented in
+the Director.  They are:
+
+\begin{verbatim}
+Job {
+  ...
+  ConsoleRunBeforeJob = "console-command"
+  ...
+}
+\end{verbatim}
+
+\begin{verbatim}
+Job {
+  ...
+  ConsoleRunAfterJob = "console-command"
+  ...
+}
+\end{verbatim}
+
+As with other RunScript commands, you may have multiple copies
+of either the {\bf ConsoleRunBeforeJob} or the {\bf ConsoleRunAfterJob}
+in the same Job resource definition.
+\smallskip
+Please note that not all console commands are permitted, and that 
+if you run a console command that requires a response, the results
+are not determined (i.e. it will probably fail).
+
+
+
+\section{New Features in 7.4.0}
+\subsection{Verify Volume Data}
+
+It is now possible to have a Verify Job configured with \texttt{level=Data} to
+reread all records from a job and optionally check the size and the checksum
+of all files.
+
+\begin{verbatim}
+# Verify Job definition
+Job {
+  Name = VerifyData
+  Level = Data
+  Client = 127.0.0.1-fd     # Use local file daemon
+  FileSet = Dummy           # Will be adapted during the job
+  Storage = File            # Should be the right one
+  Messages = Standard
+  Pool = Default
+}
+
+# Backup Job definition
+Job {
+  Name = MyBackupJob
+  Type = Backup
+  Client = windows1
+  FileSet = MyFileSet
+  Pool = 1Month
+  Storage = File
+}
+
+FileSet {
+  Name = MyFileSet
+  Include {
+    Options {
+      Verify = s5
+      Signature = MD5
+    }
+  File = /
+}
+\end{verbatim}
+
+To run the Verify job, it is possible to use the ``jobid'' parameter of the ``run'' command.
+
+\begin{verbatim}
+*run job=VerifyData jobid=10
+Run Verify Job
+JobName:     VerifyData
+Level:       Data
+Client:      127.0.0.1-fd
+FileSet:     Dummy
+Pool:        Default (From Job resource)
+Storage:     File (From Job resource)
+Verify Job:  MyBackupJob.2015-11-11_09.41.55_03
+Verify List: /opt/bacula/working/working/VerifyVol.bsr
+When:        2015-11-11 09:47:38
+Priority:    10
+OK to run? (yes/mod/no): yes
+Job queued. JobId=14
+
+...
+
+11-Nov 09:46 my-dir JobId 13: Bacula 7.4.0 (13Nov15):
+  Build OS:               x86_64-unknown-linux-gnu archlinux
+  JobId:                  14
+  Job:                    VerifyData.2015-11-11_09.46.29_03
+  FileSet:                MyFileSet
+  Verify Level:           Data
+  Client:                 127.0.0.1-fd
+  Verify JobId:           10
+  Verify Job:q
+  Start time:             11-Nov-2015 09:46:31
+  End time:               11-Nov-2015 09:46:32
+  Files Expected:         1,116
+  Files Examined:         1,116
+  Non-fatal FD errors:    0
+  SD Errors:              0
+  FD termination status:  Verify differences
+  SD termination status:  OK
+  Termination:            Verify Differences
+\end{verbatim}
+
+The current Verify Data implementation requires specifying the correct Storage
+resource in the Verify job. The Storage resource can be changed with the bconsole
+command line and with the menu.
+
+\subsection{Bconsole ``list jobs'' command options}
+
+The \texttt{list jobs} bconsole command now accepts new command line options:
+
+\begin{itemize}
+\item \textbf{joberrors} Display jobs with JobErrors
+\item \textbf{jobstatus=T} Display jobs with the specified status code
+\item \textbf{client=cli} Display jobs for a specified client
+\item \textbf{order=asc/desc} Change the output format of the job list. The
+  jobs are sorted by start time and JobId, the sort can use ascendant (asc) or
+  descendant (desc) (default) value.
+\end{itemize}
+
+\subsection{Minor Enhancements}
+
+\subsubsection{New Bconsole "Tee All" Command}
+
+The ``@tall'' command allows logging all input/output from a console session.
+
+\begin{verbatim}
+*@tall /tmp/log
+*st dir
+...
+\end{verbatim}
+
+\subsection{Windows Encrypted File System (EFS) Support}
+
+The Bacula Enterprise Windows File Daemon for the community version
+7.4.0 now automatically supports files and
+directories that are encrypted on Windows filesystem.
+
+\subsection{SSL Connections to MySQL}
+
+There are five new Directives for the Catalog resource in the
+{\bf bacula-dir.conf} file that you can use to encrypt the 
+communications between Bacula and MySQL for additional
+security.
+
+\begin{description}
+\item [dbsslkey] takes a string variable that specifies the filename of an
+SSL key file.
+\item [dbsslcert] takes a string variable that specifies the filename of an
+SSL certificate file.
+\item [dbsslca] takes a string variable that specifies the filename of a
+SSL CA (certificate authority) certificate.
+\item [dbsslcipher] takes a string variable that specifies the cipher
+to be used.
+\end{description}
+
+\subsection{Max Virtual Full Interval}
+This is a new Job resource directive that specifies the time in seconds
+that is a maximum time between Virtual Full jobs.  It is much like the
+Max Full Interval directive but applies to Virtual Full jobs rather
+that Full jobs.
+
+\subsection{New List Volumes Output}
+The {\bf list} and {\bf llist} commands have been modified so that when
+listing Volumes a new pseudo field {\bf expiresin} will be printed. This 
+field is the number of seconds in which the retention period will expire. 
+If the retention period has already expired the value will be zero.  Any
+non-zero value means that the retention period is still in effect.
+
+An example with many columns shorted for display purpose is:
+
+\begin{verbatim}
+*list volumes
+Pool: Default
+*list volumes
+Pool: Default
++----+---------------+-----------+---------+-------------+-----------+
+| id | volumename    | volstatus | enabled | volbytes    | expiresin |
++----+---------------+-----------+---------+-------------+-----------+
+|  1 | TestVolume001 | Full      |       1 | 249,940,696 |         0 |
+|  2 | TestVolume002 | Full      |       1 | 249,961,704 |         1 |
+|  3 | TestVolume003 | Full      |       1 | 249,961,704 |         2 |
+|  4 | TestVolume004 | Append    |       1 | 127,367,896 |         3 |
++----+---------------+-----------+---------+-------------+-----------+
+\end{verbatim}
+
+%%
+%%
+\chapter{New Features in 7.2.0}
+This chapter presents the new features that have been added to
+the various versions of Bacula.
+
+\section{New Features in 7.2.0}
+
+\subsection{New Job Edit Codes \%E \%R}
+In various places such as RunScripts, you have now access to \%E to get the
+number of non-fatal errors for the current Job and \%R to get the number of
+bytes read from disk or from the network during a job.
+
+\subsection{Enable/Disable commands}
+The \textbf{bconsole} \textbf{enable} and \textbf{disable} commands have
+been extended from enabling/disabling Jobs to include Clients, Schedule,
+and Storage devices.  Examples:
+
+\begin{verbatim}
+   disable Job=NightlyBackup Client=Windows-fd
+\end{verbatim}
+
+will disable the Job named \textbf{NightlyBackup} as well as the
+client named \textbf{Windows-fd}.
+
+\begin{verbatim}
+   disable Storage=LTO-changer Drive=1
+\end{verbatim}
+
+will disable the first drive in the autochanger named \textbf{LTO-changer}.
+
+Please note that doing a \textbf{reload} command will set any values
+changed by the enable/disable commands back to the values in the
+bacula-dir.conf file.
+
+The Client and Schedule resources in the bacula-dir.conf file now permit
+the directive Enable = yes or Enable = no.
+
+
+\section{Bacula 7.2}
+
+\subsection{Snapshot Management}
+
+Bacula 7.2 is now able to handle Snapshots on Linux/Unix
+systems. Snapshots can be automatically created and used to backup files. It is
+also possible to manage Snapshots from Bacula's \texttt{bconsole} tool through a
+unique interface.
+
+\subsubsection{Snapshot Backends}
+
+The following Snapshot backends are supported with Bacula Enterprise 8.2:
+
+\begin{itemize}
+\item BTRFS
+\item ZFS
+\item LVM\footnote{Some restrictions described in \vref{LVMBackend} applies to
+    the LVM backend}
+\end{itemize}
+
+By default, Snapshots are mounted (or directly available) under
+\textbf{.snapshots} directory on the root filesystem. (On ZFS, the default
+is \textbf{.zfs/snapshots}).
+
+\smallskip{}
+
+The Snapshot backend program is called \textbf{bsnapshot} and is available in
+the \textbf{bacula-enterprise-snapshot} package. In order to use the Snapshot
+Management feature, the package must be installed on the Client.
+
+\smallskip{}
+\label{bsnapshotconf}
+The \textbf{bsnapshot} program can be configured using
+\texttt{/opt/bacula/etc/bsnapshot.conf} file. The following parameters can
+be adjusted in the configuration file:
+
+\begin{itemize}
+\item \texttt{trace=<file>} Specify a trace file
+\item \texttt{debug=<num>} Specify a debug level
+\item \texttt{sudo=<yes/no>} Use sudo to run commands
+\item \texttt{disabled=<yes/no>} Disable snapshot support
+\item \texttt{retry=<num>} Configure the number of retries for some operations
+\item \texttt{snapshot\_dir=<dirname>} Use a custom name for the Snapshot directory. (\textbf{.SNAPSHOT}, \textbf{.snapdir}, etc...)
+\item \texttt{lvm\_snapshot\_size=<lvpath:size>} Specify a custom snapshot size for a given LVM volume
+\end{itemize}
+
+\begin{verbatim}
+# cat /opt/bacula/etc/bsnapshot.conf
+trace=/tmp/snap.log
+debug=10
+lvm_snapshot_size=/dev/ubuntu-vg/root:5%
+\end{verbatim}
+
+
+\subsubsection{Application Quiescing}
+
+When using Snapshots, it is very important to quiesce applications that are
+running on the system. The simplest way to quiesce an application is to stop
+it. Usually, taking the Snapshot is very fast, and the downtime is only about a
+couple of seconds. If downtime is not possible and/or the application provides
+a way to quiesce, a more advanced script can be used. An example is
+described on \vref{SnapRunScriptExample}.
+
+\subsubsection{New Director Directives}
+
+The use of the Snapshot Engine on the FileDaemon is determined by the
+new \textbf{Enable Snapshot} FileSet directive. The default is \textbf{no}.
+
+\begin{verbatim}
+FileSet {
+  Name = LinuxHome
+
+  Enable Snapshot = yes
+
+  Include {
+    Options = { Compression = LZO }
+    File = /home
+  }
+}
+\end{verbatim}
+
+By default, Snapshots are deleted from the Client at the end of the backup.  To
+keep Snapshots on the Client and record them in the Catalog for a determined
+period, it is possible to use the \textbf{Snapshot Retention} directive in the
+Client or in the Job resource. The default value is 0 secconds. If, for a given Job,
+both Client and Job \textbf{Snapshot Retention} directives are set, the Job
+directive will be used.
+
+\begin{verbatim}
+Client {
+   Name = linux1
+   ...
+
+   Snapshot Retention = 5 days
+}
+\end{verbatim}
+
+To automatically prune Snapshots, it is possible to use the following RunScript
+command:
+
+\begin{verbatim}
+Job {
+   ...
+   Client = linux1
+   ...
+   RunScript {
+      RunsOnClient = no
+      Console = "prune snapshot client=%c yes"
+      RunsAfter = yes
+   }
+}
+\end{verbatim}
+
+
+\smallskip{}
+
+In RunScripts, the \texttt{AfterSnapshot} keyword for the \texttt{RunsWhen} directive will
+allow a command to be run just after the Snapshot creation.  \texttt{AfterSnapshot} is a
+synonym for the \texttt{AfterVSS} keyword.
+
+\label{SnapRunScriptExample}
+\begin{verbatim}
+Job {
+ ...
+  RunScript {
+    Command = "/etc/init.d/mysql start"
+    RunsWhen = AfterSnapshot
+    RunsOnClient = yes
+  }
+  RunScript {
+    Command = "/etc/init.d/mysql stop"
+    RunsWhen = Before
+    RunsOnClient = yes
+  }
+}
+\end{verbatim}
+
+\subsubsection{Job Output Information}
+
+Information about Snapshots are displayed in the Job output. The list of all
+devices used by the Snapshot Engine is displayed, and the Job summary
+indicates if Snapshots were available.
+
+\begin{verbatim}
+JobId 3:    Create Snapshot of /home/build
+JobId 3:    Create Snapshot of /home/build/subvol
+JobId 3:    Delete snapshot of /home/build
+JobId 3:    Delete snapshot of /home/build/subvol
+...
+JobId 3: Bacula 127.0.0.1-dir 7.2.0 (23Jul15):
+  Build OS:               x86_64-unknown-linux-gnu archlinux 
+  JobId:                  3
+  Job:                    Incremental.2015-02-24_11.20.27_08
+  Backup Level:           Full
+...
+  Snapshot/VSS:           yes
+...
+  Termination:            Backup OK
+\end{verbatim}
+
+
+\subsubsection{New ``snapshot'' Bconsole Commands}
+
+The new \textbf{snapshot} command will display by default the following menu:
+\begin{verbatim}
+*snapshot
+Snapshot choice:
+     1: List snapshots in Catalog
+     2: List snapshots on Client
+     3: Prune snapshots
+     4: Delete snapshot
+     5: Update snapshot parameters
+     6: Update catalog with Client snapshots
+     7: Done
+Select action to perform on Snapshot Engine (1-7):
+\end{verbatim}
+
+The \textbf{snapshot} command can also have the following parameters:
+\begin{verbatim}
+[client=<client-name> | job=<job-name> | jobid=<jobid>]
+ [delete | list | listclient | prune | sync | update]
+\end{verbatim}
+
+It is also possible to use traditional \texttt{list}, \texttt{llist},
+\texttt{update}, \texttt{prune} or \texttt{delete} commands on Snapshots.
+
+\begin{verbatim}
+*llist snapshot jobid=5
+ snapshotid: 1
+       name: NightlySave.2015-02-24_12.01.00_04
+ createdate: 2015-02-24 12:01:03
+     client: 127.0.0.1-fd
+    fileset: Full Set
+      jobid: 5
+     volume: /home/.snapshots/NightlySave.2015-02-24_12.01.00_04
+     device: /home/btrfs
+       type: btrfs
+  retention: 30
+    comment:
+\end{verbatim}
+
+\begin{verbatim}
+* snapshot listclient
+Automatically selected Client: 127.0.0.1-fd
+Connecting to Client 127.0.0.1-fd at 127.0.0.1:8102
+Snapshot      NightlySave.2015-02-24_12.01.00_04:
+  Volume:     /home/.snapshots/NightlySave.2015-02-24_12.01.00_04
+  Device:     /home
+  CreateDate: 2015-02-24 12:01:03
+  Type:       btrfs
+  Status:     OK
+  Error:
+\end{verbatim}
+
+\smallskip{}
+
+With the \textsl{Update catalog with Client snapshots} option (or
+\textbf{snapshot sync}), the Director contacts the FileDaemon, lists snapshots
+of the system and creates catalog records of the Snapshots.
+
+\begin{verbatim}
+*snapshot sync
+Automatically selected Client: 127.0.0.1-fd
+Connecting to Client 127.0.0.1-fd at 127.0.0.1:8102
+Snapshot      NightlySave.2015-02-24_12.35.47_06:
+  Volume:     /home/.snapshots/NightlySave.2015-02-24_12.35.47_06
+  Device:     /home
+  CreateDate: 2015-02-24 12:35:47
+  Type:       btrfs
+  Status:     OK
+  Error:
+Snapshot added in Catalog
+
+*llist snapshot
+ snapshotid: 13
+       name: NightlySave.2015-02-24_12.35.47_06
+ createdate: 2015-02-24 12:35:47
+     client: 127.0.0.1-fd
+    fileset:
+      jobid: 0
+     volume: /home/.snapshots/NightlySave.2015-02-24_12.35.47_06
+     device: /home
+       type: btrfs
+  retention: 0
+    comment: 
+\end{verbatim}
+
+% list
+% llist
+% prune
+% delete
+% update snapshot
+% sync
+
+\subsubsection{LVM Backend Restrictions}
+\label{LVMBackend}
+
+LVM Snapshots are quite primitive compared to ZFS, BTRFS, NetApp and other
+systems. For example, it is not possible to use Snapshots if the Volume Group
+(VG) is full. The administrator must keep some free space in the VG
+to create Snapshots. The amount of free space required depends on the activity of the
+Logical Volume (LV). \textbf{bsnapshot} uses 10\% of the LV by
+default. This number can be configured per LV in the
+\textbf{bsnapshot.conf} file.
+
+\begin{verbatim}
+[root@system1]# vgdisplay
+  --- Volume group ---
+  VG Name               vg_ssd
+  System ID
+  Format                lvm2
+...
+  VG Size               29,81 GiB
+  PE Size               4,00 MiB
+  Total PE              7632
+  Alloc PE / Size       125 / 500,00 MiB
+  Free  PE / Size       7507 / 29,32 GiB
+...
+\end{verbatim}
+
+It is also not advisable to leave snapshots on the LVM backend. Having multiple
+snapshots of the same LV on LVM will slow down the system.
+
+\subsubsection{Debug Options}
+
+To get low level information about the Snapshot Engine, the debug tag ``snapshot''
+should be used in the \textbf{setdebug} command.
+
+\begin{verbatim}
+* setdebug level=10 tags=snapshot client
+* setdebug level=10 tags=snapshot dir
+\end{verbatim}
+
+\subsection{Minor Enhancements}
+\subsubsection{Storage Daemon Reports Disk Usage}
+
+The \texttt{status storage} command now  reports the space available on disk devices:
+\begin{verbatim}
+...
+Device status:
+
+Device file: "FileStorage" (/bacula/arch1) is not open.
+    Available Space=5.762 GB
+==
+
+Device file: "FileStorage1" (/bacula/arch2) is not open.
+    Available Space=5.862 GB
+\end{verbatim}
+
+\subsection{Data Encryption Cipher Configuration}
+Bacula Enterprise version 8.0 and later now allows configuration of the data
+encryption cipher and the digest algorithm. Previously, the cipher was forced to AES 128,
+but it is now possible to choose between the following ciphers:
+
+\begin{itemize}
+\item AES128 (default)
+\item AES192
+\item AES256
+\item blowfish
+\end{itemize}
+
+The digest algorithm was set to SHA1 or SHA256 depending on the local OpenSSL
+options. We advise you to not modify the PkiDigest default setting. Please,
+refer to the OpenSSL documentation to understand the pros and cons regarding these options.
+
+\begin{verbatim}
+  FileDaemon {
+    ...
+    PkiCipher = AES256
+  }
+\end{verbatim}
+
+\subsubsection*{New Option Letter ``M'' for Accurate Directive in FileSet}
+
+% waa - 20150317 - is 8.0.5 correct here?
+Added in version 8.0.5, the new ``M'' option letter for the Accurate directive
+in the FileSet Options block, which allows comparing the modification time and/or
+creation time against the last backup timestamp. This is in contrast to the
+existing options letters ``m'' and/or ``c'', mtime and ctime, which are checked
+against the stored catalog values, which can vary accross different machines
+when using the BaseJob feature.
+
+The advantage of the new ``M'' option letter for Jobs that refer to BaseJobs is
+that it will instruct Bacula to backup files based on the last backup time, which
+is more useful because the mtime/ctime timestamps may differ on various Clients,
+causing files to be needlessly backed up.
+
+\smallskip{}
+
+\begin{verbatim}
+  Job {
+    Name = USR
+    Level = Base
+    FileSet = BaseFS
+...
+  }
+
+  Job {
+    Name = Full
+    FileSet = FullFS
+    Base = USR
+...
+  }
+
+  FileSet {
+    Name = BaseFS
+    Include {
+      Options {
+        Signature = MD5
+      }
+      File = /usr
+    }
+  }
+
+  FileSet {
+    Name = FullFS
+    Include {
+      Options {
+        Accurate = Ms      # check for mtime/ctime of last backup timestamp and Size
+        Signature = MD5
+      }
+      File = /home
+      File = /usr
+    }
+  }
+\end{verbatim}
+
+\subsection{Read Only Storage Devices}
+This version of Bacula allows you to define a Storage deamon device
+to be read-only. If the {\bf Read Only} directive is specified and
+enabled, the drive can only be used for read operations.
+The {\bf Read Only} directive can be defined in any bacula-sd.conf
+Device resource, and is most useful for reserving one or more
+drives for restores. An example is:
+
+\begin{verbatim}
+Read Only = yes
+\end{verbatim}
+
+\subsection{New Resume Command}
+The new \texttt{resume} command does exactly the same thing as a
+{\bf restart} command, but for some users the
+name may be more logical because in general the
+{\bf restart} command is used to resume running
+a Job that was incomplete.
+
+\subsection{New Prune ``Expired'' Volume Command}
+In Bacula Enterprise 6.4, it is now possible to prune all volumes
+(from a pool, or globally) that are ``expired''.  This option can be
+scheduled after or before the backup of the catalog and can be
+combined with the \texttt{Truncate On Purge} option.  The \texttt{prune expired volme} command may
+be used instead of the \texttt{manual\_prune.pl} script.
+
+\begin{verbatim}
+* prune expired volume
+
+* prune expired volume pool=FullPool
+\end{verbatim}
+
+To schedule this option automatically, it can be added to the Catalog backup job
+definition.
+
+\begin{verbatim}
+ Job {
+   Name = CatalogBackup
+   ...
+   RunScript {
+     Console = "prune expired volume yes"
+     RunsWhen = Before
+   }
+ }
+\end{verbatim}
+
+
+\subsection{New Job Edit Codes \%P \%C}
+In various places such as RunScripts, you have now access to \%P to get the
+current Bacula process ID (PID) and \%C to know if the current job is a
+cloned job.
+
+\subsection{Enhanced Status and Error Messages}
+We have enhanced the Storage daemon status output to be more
+readable. This is important when there are a large number of
+devices. In addition to formatting changes, it also includes more
+details on which devices are reading and writing.
+
+A number of error messages have been enhanced to have more specific
+data on what went wrong.
+
+If a file changes size while being backed up the old and new size
+are reported.
+
+\subsection{Miscellaneous New Features}
+\begin{itemize}
+\item Allow unlimited line lengths in .conf files (previously limited
+to 2000 characters).
+
+\item Allow /dev/null in ChangerCommand to indicated a Virtual Autochanger.
+
+\item Add a --fileprune option to the manual\_prune.pl script.
+
+\item Add a -m option to make\_catalog\_backup.pl to do maintenance
+on the catalog.
+
+\item Safer code that cleans up the working directory when starting
+the daemons. It limits what files can be deleted, hence enhances 
+security.
+
+\item Added a new .ls command in bconsole to permit browsing a client's
+filesystem.
+
+\item Fixed a number of bugs, includes some obscure seg faults, and a
+race condition that occurred infrequently when running Copy, Migration,
+or Virtual Full backups.
+
+\item Upgraded to a newer version of Qt4 for bat. All indications
+are that this will improve bat's stability on Windows machines.
+
+\item The Windows installers now detect and refuse to install on
+an OS that does not match the 32/64 bit value of the installer.
+\end{itemize}
+
+\subsection{FD Storage Address}
+
+When the Director is behind a NAT, in a WAN area, to connect to
+% the FileDaemon or
+the StorageDaemon, the Director uses an ``external'' ip address,
+and the FileDaemon should use an ``internal'' IP address to contact the
+StorageDaemon.
+
+The normal way to handle this situation is to use a canonical name such as
+``storage-server'' that will be resolved on the Director side as the WAN
+address and on the Client side as the LAN address. This is now possible to
+configure this parameter using the new directive \texttt{FDStorageAddress} in
+the Storage or Client resource.
+
+
+%%\bsysimageH{BackupOverWan1}{Backup Over WAN}{figbs6:fdstorageaddress}
+%  \label{fig:fdstorageaddress}
+
+\begin{verbatim}
+Storage {
+     Name = storage1
+     Address = 65.1.1.1
+     FD Storage Address = 10.0.0.1
+     SD Port = 9103
+     ...
+}
+\end{verbatim}
+
+% # or in the Client resouce
+%
+
+\begin{verbatim}
+ Client {
+      Name = client1
+      Address = 65.1.1.2
+      FD Storage Address = 10.0.0.1
+      FD Port = 9102
+      ...
+ }
+\end{verbatim}
+
+Note that using the Client \texttt{FDStorageAddress} directive will not allow
+to use multiple Storage Daemon, all Backup or Restore requests will be sent to
+the specified \texttt{FDStorageAddress}.
+
+\subsection{Maximum Concurrent Read Jobs}
+This is a new directive that can be used in the {\bf bacula-dir.conf} file
+in the Storage resource.  The main purpose is to limit the number
+of concurrent Copy, Migration, and VirtualFull jobs so that
+they don't monopolize all the Storage drives causing a deadlock situation
+where all the drives are allocated for reading but none remain for
+writing.  This deadlock situation can occur when running multiple
+simultaneous Copy, Migration, and VirtualFull jobs.
+
+\smallskip
+The default value is set to 0 (zero), which means there is no
+limit on the number of read jobs.  Note, limiting the read jobs
+does not apply to Restore jobs, which are normally started by
+hand.  A reasonable value for this directive is one half the number
+of drives that the Storage resource has rounded down.  Doing so,
+will leave the same number of drives for writing and will generally
+avoid over committing drives and a deadlock.
+
+\subsection{Incomplete Jobs}
+During a backup, if the Storage daemon experiences disconnection
+with the File daemon during backup (normally a comm line problem
+or possibly an FD failure), under conditions that the SD determines
+to be safe it will make the failed job as Incomplete rather than
+failed.  This is done only if there is sufficient valid backup
+data that was written to the Volume. The advantage of an Incomplete
+job is that it can be restarted by the new bconsole {\bf restart}
+command from the point where it left off rather than from the
+beginning of the jobs as is the case with a cancel.
+
+\subsection{The Stop Command}
+Bacula has been enhanced to provide a {\bf stop} command,
+very similar to the {\bf cancel} command with the main difference
+that the Job that is stopped is marked as Incomplete so that
+it can be restarted later by the {\bf restart} command where
+it left off (see below).  The {\bf stop} command with no
+arguments, will like the cancel command, prompt you with the
+list of running jobs allowing you to select one, which might
+look like the following:
+
+\begin{verbatim}
+*stop
+Select Job:
+     1: JobId=3 Job=Incremental.2012-03-26_12.04.26_07
+     2: JobId=4 Job=Incremental.2012-03-26_12.04.30_08
+     3: JobId=5 Job=Incremental.2012-03-26_12.04.36_09
+Choose Job to stop (1-3): 2
+2001 Job "Incremental.2012-03-26_12.04.30_08" marked to be stopped.
+3000 JobId=4 Job="Incremental.2012-03-26_12.04.30_08" marked to be stopped.
+\end{verbatim}
+
+\subsection{The Restart Command}
+The new {\bf Restart command} allows console users to restart
+a canceled, failed, or incomplete Job.  For canceled and failed
+Jobs, the Job will restart from the beginning.  For incomplete
+Jobs the Job will restart at the point that it was stopped either
+by a stop command or by some recoverable failure.
+
+\smallskip
+If you enter the {\bf restart} command in bconsole, you will get the
+following prompts:
+
+\begin{verbatim}
+*restart
+You have the following choices:
+     1: Incomplete
+     2: Canceled
+     3: Failed
+     4: All
+Select termination code:  (1-4):
+\end{verbatim}
+
+If you select the {\bf All} option, you may see something like:
+
+\begin{verbatim}
+Select termination code:  (1-4): 4
++-------+-------------+---------------------+------+-------+----------+-----------+-----------+
+| jobid | name        | starttime           | type | level | jobfiles |
+jobbytes  | jobstatus |
++-------+-------------+---------------------+------+-------+----------+-----------+-----------+
+|     1 | Incremental | 2012-03-26 12:15:21 | B    | F     |        0 |
+    0 | A         |
+|     2 | Incremental | 2012-03-26 12:18:14 | B    | F     |      350 |
+4,013,397 | I         |
+|     3 | Incremental | 2012-03-26 12:18:30 | B    | F     |        0 |
+    0 | A         |
+|     4 | Incremental | 2012-03-26 12:18:38 | B    | F     |      331 |
+3,548,058 | I         |
++-------+-------------+---------------------+------+-------+----------+-----------+-----------+
+Enter the JobId list to select:
+\end{verbatim}
+
+Then you may enter one or more JobIds to be restarted, which may
+take the form of a list of JobIds separated by commas, and/or JobId
+ranges such as {\bf 1-4}, which indicates you want to restart JobIds
+1 through 4, inclusive.
+
+\subsection{Job Bandwidth Limitation}
+
+The new {\bf Job Bandwidth Limitation} directive may be added to the File
+daemon's and/or Director's configuration to limit the bandwidth used by a
+Job on a Client.  It can be set in the File daemon's conf file for all Jobs
+run in that File daemon, or it can be set for each Job in the Director's
+conf file. The speed is always specified in bytes per second.
+
+For example:
+\begin{verbatim}
+FileDaemon {
+  Name = localhost-fd
+  Working Directory = /some/path
+  Pid Directory = /some/path
+  ...
+  Maximum Bandwidth Per Job = 5Mb/s
+}
+\end{verbatim}
+
+The above example would cause any jobs running with the FileDaemon to not
+exceed 5 megabytes per second of throughput when sending data to the
+Storage Daemon. Note, the speed is always specified in bytes per second
+(not in bits per second), and the case (upper/lower) of the specification
+characters is ignored (i.e. 1MB/s = 1Mb/s).
+
+You may specify the following speed parameter modifiers:
+   k/s (1,000 bytes per second), kb/s (1,024 bytes per second),
+   m/s (1,000,000 bytes per second), or mb/s (1,048,576 bytes per second).
+
+For example:
+\begin{verbatim}
+Job {
+  Name = locahost-data
+  FileSet = FS_localhost
+  Accurate = yes
+  ...
+  Maximum Bandwidth = 5Mb/s
+  ...
+}
+\end{verbatim}
+
+The above example would cause Job \texttt{localhost-data} to not exceed 5MB/s
+of throughput when sending data from the File daemon to the Storage daemon.
+
+A new console command \texttt{setbandwidth} permits to set dynamically the
+maximum throughput of a running Job or for future jobs of a Client.
+
+\begin{verbatim}
+* setbandwidth limit=1000 jobid=10
+\end{verbatim}
+
+Please note that the value specified for the \texttt{limit} command
+line parameter is always in units of 1024 bytes (i.e. the number
+is multiplied by 1024 to give the number of bytes per second).  As 
+a consequence, the above limit of 1000 will be interpreted as a
+limit of 1000 * 1024 = 1,024,000 bytes per second.
+
+\subsection{Always Backup a File}
+
+When the Accurate mode is turned on, you can decide to always backup a file
+by using then new {\bf A} Accurate option in your FileSet. For example:
+
+\begin{verbatim}
+Job {
+   Name = ...
+   FileSet = FS_Example
+   Accurate = yes
+   ...
+}
+
+FileSet {
+ Name = FS_Example
+ Include {
+   Options {
+     Accurate = A
+   }
+   File = /file
+   File = /file2
+ }
+ ...
+}
+\end{verbatim}
+
+This project was funded by Bacula Systems based on an idea of James Harper and
+is available with the Bacula Enterprise Edition.
+
+\subsection{Setting Accurate Mode at Runtime}
+
+You are now able to specify the Accurate mode on the \texttt{run} command and
+in the Schedule resource.
+
+\begin{verbatim}
+* run accurate=yes job=Test
+\end{verbatim}
+
+\begin{verbatim}
+Schedule {
+  Name = WeeklyCycle
+  Run = Full 1st sun at 23:05
+  Run = Differential accurate=yes 2nd-5th sun at 23:05
+  Run = Incremental  accurate=no  mon-sat at 23:05
+}
+\end{verbatim}
+
+It can allow you to save memory and and CPU resources on the catalog server in
+some cases.
+
+\medskip
+These advanced tuning options are available with the Bacula Enterprise Edition.
+
+% Common with community
+\subsection{Additions to RunScript variables}
+You can have access to JobBytes, JobFiles and Director name using \%b, \%F and \%D
+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 Dir=%D"
+\end{verbatim}
+
+\subsection{LZO Compression}
+
+LZO compression was added in the Unix File Daemon. From the user 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 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 built-in compression may be a better option.
+
+LZO is a good alternative for GZIP1 when you don't want to slow down your
+backup. On 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 that bacula only use one compression level LZO1X-1.
+
+\medskip
+The code for this feature was contributed by Laurent Papier.
+
+\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 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}
+
+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.
+
+\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}
+
+
+
+\chapter{New Features in 7.0.0}
+This chapter presents the new features that have been added to
+the various versions of Bacula.
+
+\section{New Features in 7.0.0}
+
+\subsection{Storage daemon to Storage daemon}
+Bacula version 7.0 permits SD to SD transfer of Copy and Migration
+Jobs. This permits what is commonly referred to as replication or
+off-site transfer of Bacula backups.  It occurs automatically, if
+the source SD and destination SD of a Copy or Migration job are
+different. The following picture shows how this works.
+
+\includegraphics[width=0.8\linewidth]{sd-to-sd}
+
+\subsection{SD Calls Client}
+If the {\bf SD Calls Client} directive is set to true in a Client resource
+any Backup, Restore, Verify, Copy, or Migration Job where the client
+is involved, the client will wait for the Storage daemon to contact it.
+By default this directive is set to false, and the Client will call
+the Storage daemon.  This directive can be useful if your Storage daemon
+is behind a firewall that permits outgoing connections but not incoming
+one. The following picture shows the communications connection paths in
+both cases.
+
+\includegraphics[width=0.8\linewidth]{sd-calls-client}
+
+\subsection{Next Pool}
+In previous versions of Bacula the Next Pool directive could be
+specified in the Pool resource for use with Migration and Copy Jobs.
+The Next Pool concept has been 
+extended in Bacula version 7.0.0 to allow you to specify the 
+Next Pool directive in the Job resource as well. If specified in
+the Job resource, it will override any value specified in the Pool
+resource.
+
+In addition to being permitted in the Job resource, the 
+{\bf nextpool=xxx} specification can be specified as a run
+override in the {\bf run} directive of a Schedule resource.
+Any {\bf nextpool} specification in a {\bf run}
+directive will override any other specification in either
+the Job or the Pool. 
+
+In general, more information is displayed in the Job log
+on exactly which Next Pool specification is ultimately used.
+
+\subsection{status storage}
+The bconsole {\bf status storage} has been modified to attempt to eliminate
+duplicate storage resources and only show one that references any given
+storage daemon.  This might be confusing at first, but tends to make a
+much more compact list of storage resource from which to select if there
+are multiple storage devices in the same storage daemon.
+
+If you want the old behavior (always display all storage resources) simply 
+add the keyword {\bf select} to the command -- i.e. use
+{\bf status select storage}.
+
+
+
+
+
+\subsection{status schedule}
+A new status command option called {\bf scheduled} has been implemented
+in bconsole. By default it will display 20 lines of the next scheduled
+jobs.  For example, with the default bacula-dir.conf configuration file,
+a bconsole command {\bf status scheduled} produces:
+
+\begin{verbatim}
+Scheduled Jobs:
+Level        Type   Pri  Scheduled        Job Name     Schedule
+======================================================================
+Differential Backup 10  Sun 30-Mar 23:05 BackupClient1 WeeklyCycle
+Incremental  Backup 10  Mon 24-Mar 23:05 BackupClient1 WeeklyCycle
+Incremental  Backup 10  Tue 25-Mar 23:05 BackupClient1 WeeklyCycle
+...
+Full         Backup 11  Mon 24-Mar 23:10 BackupCatalog WeeklyCycleAfterBackup
+Full         Backup 11  Wed 26-Mar 23:10 BackupCatalog WeeklyCycleAfterBackup
+...
+====
+\end{verbatim}
+
+Note, the output is listed by the Jobs found, and is not sorted
+chronologically.
+
+\smallskip
+This command has a number of options, most of which act as filters:
+\begin{itemize}
+\item {\bf days=nn} This specifies the number of days to list. The default is
+  10 but can be set from 0 to 500.
+\item {\bf limit=nn} This specifies the limit to the number of lines to print.
+  The default is 100 but can be any number in the range 0 to 2000.
+\item {\bf time="YYYY-MM-DD HH:MM:SS"} Sets the start time for listing the
+  scheduled jobs. The default is to use the current time. Note, the
+  time value must be specified inside double quotes and must be in
+  the exact form shown above.
+\item {\bf schedule=schedule-name} This option restricts the output to
+  the named schedule.
+\item {\bf job=job-name} This option restricts the output to the specified
+  Job name.
+\end{itemize}
+
+\subsection{Data Encryption Cipher Configuration}
+Bacula version 7.0 and later now allows to configure the data
+encryption cipher and the digest algorithm. The cipher was forced to AES
+128, and it is now possible to choose between the following ciphers:
+
+\begin{itemize}
+\item AES128 (default)
+\item AES192
+\item AES256
+\item blowfish
+\end{itemize}
+
+The digest algorithm was set to SHA1 or SHA256 depending on the local
+OpenSSL
+options. We advise you to not modify the PkiDigest default setting. Please,
+refer to OpenSSL documentation to know about pro and cons on these options.
+
+\begin{verbatim}
+  FileDaemon {
+    ...
+    PkiCipher = AES256
+  }
+\end{verbatim}
+
+\subsection{New Truncate Command}
+We have added a new truncate command to bconsole, which
+will truncate a Volume if the Volume is purged and if
+the Volume is also marked {\bf Action On Purge = Truncate}.
+This feature was originally added in Bacula version 5.0.1,
+but the mechanism for actually doing the truncate required
+the user to enter a command such as:
+
+\begin{verbatim}
+purge volume action=truncate storage=File pool=Default
+\end{verbatim}
+
+The above command is now simplified to be:
+
+\begin{verbatim}
+truncate storage=File pool=Default
+\end{verbatim}
+
+\subsection{Migration/Copy/VirtualFull Performance Enhancements}
+The Bacula Storage daemon now permits multiple jobs to simultaneously read
+the same disk Volume, which gives substantial performance enhancements when
+running Migration, Copy, or VirtualFull jobs that read disk Volumes.  Our
+testing shows that when running multiple simultaneous jobs, the jobs can
+finish up to ten times faster with this version of Bacula.  This is
+built-in to the Storage daemon, so it happens automatically and
+transparently.
+
+\subsection{VirtualFull Backup Consolidation Enhancements}
+By default Bacula selects jobs automatically for a VirtualFull,
+however, you may want to create the Virtual backup based on a
+particular backup (point in time) that exists.
+
+For example, if you have the following backup Jobs in your catalog:
+\begin{verbatim}
++-------+---------+-------+----------+----------+-----------+
+| JobId | Name    | Level | JobFiles | JobBytes | JobStatus |
++-------+---------+-------+----------+----------+-----------+
+| 1     | Vbackup | F     | 1754     | 50118554 | T         |
+| 2     | Vbackup | I     | 1        | 4        | T         |
+| 3     | Vbackup | I     | 1        | 4        | T         |
+| 4     | Vbackup | D     | 2        | 8        | T         |
+| 5     | Vbackup | I     | 1        | 6        | T         |
+| 6     | Vbackup | I     | 10       | 60       | T         |
+| 7     | Vbackup | I     | 11       | 65       | T         |
+| 8     | Save    | F     | 1758     | 50118564 | T         |
++-------+---------+-------+----------+----------+-----------+
+\end{verbatim}
+
+and you want to consolidate only the first 3 jobs and create a
+virtual backup equivalent to Job 1 + Job 2 + Job 3, you will use
+\texttt{jobid=3} in the \texttt{run} command, then Bacula will select the
+previous Full backup, the previous Differential (if any) and all subsequent
+Incremental jobs.
+
+\begin{verbatim}
+run job=Vbackup jobid=3 level=VirtualFull
+\end{verbatim}
+
+If you want to consolidate a specific job list, you must specify the exact
+list of jobs to merge in the run command line.  For example, to consolidate
+the last Differential and all subsequent Incremental, you will use
+\texttt{jobid=4,5,6,7} or \texttt{jobid=4-7} on the run command line. As one
+of the Job in the list is a Differential backup, Bacula will set the new job
+level to Differential. If the list is composed only with Incremental jobs,
+the new job will have a level set to Incremental.
+
+\begin{verbatim}
+run job=Vbackup jobid=4-7 level=VirtualFull
+\end{verbatim}
+
+When using this feature, Bacula will automatically discard jobs that are
+not related to the current Job.  For example, specifying
+\texttt{jobid=7,8}, Bacula will discard JobId 8 because it is not
+part of the same backup Job.
+
+We do not recommend it, but really want to consolidate jobs that have
+different names (so probably different clients, filesets, etc...), you must
+use \texttt{alljobid=} keyword instead of \texttt{jobid=}.
+
+\begin{verbatim}
+run job=Vbackup alljobid=1-3,6-8 level=VirtualFull
+\end{verbatim}
+
+
+\subsection{FD Storage Address}
+
+When the Director is behind a NAT, in a WAN area, to connect to
+% the FileDaemon or
+the StorageDaemon, the Director uses an ``external'' ip address,
+and the FileDaemon should use an ``internal'' IP address to contact the
+StorageDaemon.
+
+The normal way to handle this situation is to use a canonical name such as
+``storage-server'' that will be resolved on the Director side as the WAN
+address and on the Client side as the LAN address. This is now possible to
+configure this parameter using the new directive \texttt{FDStorageAddress} in
+the Storage or Client resource.
+
+
+\includegraphics[width=0.8\linewidth]{BackupOverWan1}
+\label{fig:fdstorageaddress}
+
+\begin{verbatim}
+Storage {
+     Name = storage1
+     Address = 65.1.1.1
+     FD Storage Address = 10.0.0.1
+     SD Port = 9103
+     ...
+}
+\end{verbatim}
+
+% # or in the Client resouce
+%
+
+\begin{verbatim}
+ Client {
+      Name = client1
+      Address = 65.1.1.2
+      FD Storage Address = 10.0.0.1
+      FD Port = 9102
+      ...
+ }
+\end{verbatim}
+
+Note that using the Client \texttt{FDStorageAddress} directive will not allow
+to use multiple Storage Daemon, all Backup or Restore requests will be sent to
+the specified \texttt{FDStorageAddress}.
+
+\subsection{Job Bandwidth Limitation}
+
+The new {\bf Job Bandwidth Limitation} directive may be added to the File
+daemon's and/or Director's configuration to limit the bandwidth used by a
+Job on a Client.  It can be set in the File daemon's conf file for all Jobs
+run in that File daemon, or it can be set for each Job in the Director's
+conf file. The speed is always specified in bytes per second.
+
+For example:
+\begin{verbatim}
+FileDaemon {
+  Name = localhost-fd
+  Working Directory = /some/path
+  Pid Directory = /some/path
+  ...
+  Maximum Bandwidth Per Job = 5Mb/s
+}
+\end{verbatim}
+
+The above example would cause any jobs running with the FileDaemon to not
+exceed 5 megabytes per second of throughput when sending data to the
+Storage Daemon. Note, the speed is always specified in bytes per second
+(not in bits per second), and the case (upper/lower) of the specification
+characters is ignored (i.e. 1MB/s = 1Mb/s).
+
+You may specify the following speed parameter modifiers:
+   k/s (1,000 bytes per second), kb/s (1,024 bytes per second),
+   m/s (1,000,000 bytes per second), or mb/s (1,048,576 bytes per second).
+
+For example:
+\begin{verbatim}
+Job {
+  Name = locahost-data
+  FileSet = FS_localhost
+  Accurate = yes
+  ...
+  Maximum Bandwidth = 5Mb/s
+  ...
+}
+\end{verbatim}
+
+The above example would cause Job \texttt{localhost-data} to not exceed 5MB/s
+of throughput when sending data from the File daemon to the Storage daemon.
+
+A new console command \texttt{setbandwidth} permits to set dynamically the
+maximum throughput of a running Job or for future jobs of a Client.
+
+\begin{verbatim}
+* setbandwidth limit=1000 jobid=10
+\end{verbatim}
+
+Please note that the value specified for the \texttt{limit} command
+line parameter is always in units of 1024 bytes (i.e. the number
+is multiplied by 1024 to give the number of bytes per second).  As 
+a consequence, the above limit of 1000 will be interpreted as a
+limit of 1000 * 1024 = 1,024,000 bytes per second.
+
+\medskip
+This project was funded by Bacula Systems.
+
+
+\subsection{Maximum Concurrent Read Jobs}
+This is a new directive that can be used in the {\bf bacula-dir.conf} file
+in the Storage resource.  The main purpose is to limit the number
+of concurrent Copy, Migration, and VirtualFull jobs so that
+they don't monopolize all the Storage drives causing a deadlock situation
+where all the drives are allocated for reading but none remain for
+writing.  This deadlock situation can occur when running multiple
+simultaneous Copy, Migration, and VirtualFull jobs.
+
+\smallskip
+The default value is set to 0 (zero), which means there is no
+limit on the number of read jobs.  Note, limiting the read jobs
+does not apply to Restore jobs, which are normally started by
+hand.  A reasonable value for this directive is one half the number
+of drives that the Storage resource has rounded down.  Doing so,
+will leave the same number of drives for writing and will generally
+avoid over committing drives and a deadlock.
+
+
+\subsection{Director job Codes in Message Resource Commands}
+Before submitting the specified mail command to the operating system, Bacula
+performs character substitution like in Runscript commands. Bacula will now
+perform also specific Director character substitution.
+
+\smallskip{}
+The code for this feature was contributed by Bastian Friedrich.
+
+\subsection{Additions to RunScript variables}
+The following variables are now available in runscripts:
+\begin{itemize}
+\item current PID using \%P
+\item if the job is a clone job using \%C
+\end{itemize}
+
+\begin{verbatim}
+RunAfterJob = "/bin/echo Pid=%P isCloned=%C" 
+
+\end{verbatim}
+
+\subsection{Read Only Storage Devices}
+This version of Bacula permits defining a Storage daemon device
+to be read-only. That is if the {\bf ReadOnly} directive is specified and
+enabled, the drive can only be used for read operations.
+The the {\bf ReadOnly} directive can be defined in any bacula-sd.conf
+Device resource, and is most useful to reserve one or more 
+drives for restores. An example is:
+
+\begin{verbatim}
+Read Only = yes
+\end{verbatim}
+
+\subsection{New Prune ``Expired'' Volume Command}
+It is now possible to prune all volumes
+(from a pool, or globally) that are ``expired''.  This option can be
+scheduled after or before the backup of the Catalog and can be
+combined with the Truncate On Purge option.  The Expired Prune option can
+be used instead of the \texttt{manual\_prune.pl} script.
+
+\begin{verbatim}
+* prune expired volumes
+
+* prune expired volumes pool=FullPool
+\end{verbatim}
+
+To schedule this option automatically, it can be added to the BackupCatalog job
+definition.
+
+\begin{verbatim}
+ Job {
+   Name = CatalogBackup
+   ...
+   RunScript {
+     Console = "prune expired volume yes"
+     RunsWhen = Before
+   }
+ }
+\end{verbatim}
+
+\subsection{Hardlink Performance Enhancements}
+If you use a program such as Cyrus IMAP that creates very large numbers
+of hardlinks, the time to build the interactive restore tree can be
+excessively long. This version of Bacula has a new feature that
+automatically keeps the hardlinks associated with the restore tree
+in memory, which consumes a bit more memory but vastly speeds up 
+building the tree.  If the memory usage is too big for your system, you
+can reduce the amount of memory used during the restore command by
+adding the option {\bf optimizespeed=false} on the bconsole run
+command line.
+
+This feature was developed by Josip Almasi, and enhanced to be runtime
+dynamic by Kern Sibbald.
+
+\subsection{DisableCommand Directive}
+There is a new Directive named {\bf Disable Command} that
+can be put in the File daemon Client or Director resource.
+If it is in the Client, it applies globally, otherwise the
+directive applies only to the Director in which it is found.
+The Disable Command adds security to your File daemon by
+disabling certain commands.  The commands that can be
+disabled are:
+
+\begin{verbatim}
+backup       
+cancel       
+setdebug=    
+setbandwidth=
+estimate     
+fileset      
+JobId=       
+level =      
+restore      
+endrestore   
+session      
+status       
+.status      
+storage      
+verify       
+RunBeforeNow 
+RunBeforeJob 
+RunAfterJob  
+Run          
+accurate
+\end{verbatim}
+
+On or more of these command keywords can be placed in quotes and separated
+by spaces on the Disable Command directive line.  Note: the commands must
+be written exactly as they appear above.
+
+\subsection{Multiple Console Directors}
+Support for multiple bconsole and bat Directors in the bconsole.conf and
+bat.conf files has been implemented and/or improved.
+
+\subsection{Restricted Consoles}
+Better support for Restricted consoles has been implement for bconsole and
+bat.
+
+\subsection{Configuration Files}
+In previous versions of Bacula the configuration files for each component
+were limited to a maximum of 499 bytes per configuration file line. This
+version of Bacula permits unlimited input line lengths.  This can be
+especially useful for specifying more complicated Migration/Copy SQL
+statements and in creating long restricted console ACL lists.
+
+\subsection{Maximum Spawned Jobs}
+The Job resource now permits specifying a number of {\bf Maximum Spawn
+Jobs}. The default is 300.  This directive can be useful if you have
+big hardware and you do a lot of Migration/Copy jobs which start
+at the same time.  In prior versions of Bacula, Migration/Copy
+was limited to spawning a maximum of 100 jobs at a time.
+
+\subsection{Progress Meter}
+The new File daemon has been enhanced to send its progress (files
+processed and bytes written) to the Director every 30 seconds. These
+figures can then be displayed with a bconsole {\bf status dir} 
+command.
+
+\subsection{Scheduling a 6th Week}
+Prior version of Bacula permits specifying 1st through 5th week of 
+a month (first through fifth) as a keyword on the {\bf run}
+directive of a Schedule resource.  This version of Bacula also permits
+specifying the 6th week of a month with the keyword {\bf sixth} or
+{\bf 6th}.
+
+\subsection{Scheduling the Last Day of a Month}
+This version of Bacula now permits specifying the {\bf lastday}
+keyword in the {\bf run} directive of a Schedule resource.
+If {\bf lastday} is specified, it will apply only to those months
+specified on the {\bf run} directive.  Note: by default all months
+are specified.
+
+\subsection{Improvements to Cancel and Restart bconsole Commands}
+The Restart bconsole command now allow selection of either
+canceled or failed jobs to be restarted.  In addition both the
+{\bf cancel} and {\bf restart} bconsole commands permit entering
+a number of JobIds separated by commas or a range of JobIds indicated
+by a dash between the begin and end range (e.g. 3-10).  Finally the
+two commands also allow one to enter the special keyword {\bf all}
+to select all the appropriate Jobs.
+
+\subsection{bconsole Performance Improvements}
+In previous versions of Bacula certain bconsole commands could wait a long
+time due to catalog lock contention.  This was especially noticeable 
+when a large number of jobs were running and putting their attributes
+into the catalog.  This version uses a separate catalog connection that
+should significantly enhance performance.
+
+\subsection{New .bvfs\_decode\_lstat Command}
+There is a new bconsole command, which is
+{\bf .bvfs\_decode\_lstat} it requires one argument, which
+is {\bf lstat="lstat value to decode"}.  An example command
+in bconsole and the output might be:
+
+\small
+\begin{verbatim}
+.bvfs_decode_lstat lstat="A A EHt B A A A JP BAA B BTL/A7 BTL/A7 BTL/A7 A A C"
+
+st_nlink=1
+st_mode=16877
+st_uid=0
+st_gid=0
+st_size=591
+st_blocks=1
+st_ino=0
+st_ctime=1395650619
+st_mtime=1395650619
+st_mtime=1395650619
+st_dev=0
+LinkFI=0
+\end{verbatim}
+\normalsize
+
+
+\subsection*{New Debug Options}
+
+In Bacula Enterprise version 8.0 and later, we introduced new options to
+the \texttt{setdebug} command.
+
+\smallskip{}
+
+If the \texttt{options} parameter is set, the following arguments can be
+used to control debug functions.
+
+\begin{itemize}
+\item [0] clear debug flags
+\item [i] Turn off, ignore bwrite() errors on restore on File Daemon
+\item [d] Turn off decomp of BackupRead() streams on File Daemon
+\item [t] Turn on timestamp in traces
+\item [T] Turn off timestamp in traces
+\item [c] Truncate trace file if trace file is activated
+\item [l] Turn on recoding events on P() and V()
+\item [p] Turn on the display of the event ring when doing a bactrace
+\end{itemize}
+
+\smallskip{}
+
+The following command will truncate the trace file and will turn on timestamps
+in the trace file.
+
+\begin{verbatim}
+* setdebug level=10 trace=1 options=ct fd
+\end{verbatim}
+
+\smallskip{}
+
+It is now possible to use \textsl{class} of debug messages called \texttt{tags}
+to control the debug output of Bacula daemons.
+
+\begin{itemize}
+\item [all] Display all debug messages
+\item [bvfs] Display BVFS debug messages
+\item [sql] Display SQL related debug messages
+\item [memory] Display memory and poolmem allocation messages
+\item [scheduler] Display scheduler related debug messages
+\end{itemize}
+
+\begin{verbatim}
+* setdebug level=10 tags=bvfs,sql,memory
+* setdebug level=10 tags=!bvfs
+
+# bacula-dir -t -d 200,bvfs,sql
+\end{verbatim}
+
+The \texttt{tags} option is composed of a list of tags, tags are separated by
+``,'' or ``+'' or ``-'' or ``!''. To disable a specific tag, use ``-'' or ``!''
+in front of the tag. Note that more tags will come in future versions.
+
+%\LTXtable{\linewidth}{table_debugtags}
+
+
+\chapter{New Features in 5.2.13}
 This chapter presents the new features that have been added to the current
-Community version of Bacula that is under development. This version will be
-released at some later date, probably near the end of April 2011.
+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}
 
-\section{LZO Compression}
-
-LZO compression was added in the File Daemon. From the user point of view, it
-works like the GZIP compression (just replace {\bf compression=GZIP} with {\bf
-  compression=LZO}).
+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 }
+   Options {compression=LZO }
    File = /home
    File = /data
 }
 \end{verbatim}
 
-LZO provides much faster compression and decompression speed but lower
+LZO provides 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 built-in compression may be a better option.
+tape, the hardware compression is almost always a better option.
 
-LZO is a good altenative for GZIP1 when you don't want to slow down your
-backup. On a modern CPU it should be able to run almost as fast as:
+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
@@ -37,37 +2656,57 @@ backup. On a modern CPU it should be able to run almost as fast as:
   a 1Gb/s link.
 \end{itemize}
 
-Note that bacula only use one compression level LZO1X-1.
+Note, Bacula uses compression level LZO1X-1.
 
 \medskip
 The code for this feature was contributed by Laurent Papier.
 
-\section{New Tray Monitor}
+\subsection{New Tray Monitor}
 
-Since the old integrated Windows tray monitor doesn't work anymore with
+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.  This new version allows you to run Backup from
+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}
+  \includegraphics[width=0.8\linewidth]{tray-monitor}
   \label{fig:traymonitor}
   \caption{New tray monitor}
 \end{figure}
 
 \begin{figure}[htbp]
   \centering
-  \includegraphics[width=10cm]{\idir tray-monitor1}
+  \includegraphics[width=0.8\linewidth]{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.
 
-\section{Purge Migration Job}
+\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 
@@ -88,34 +2727,33 @@ Job {
   Selection Type = Job
   Selection Pattern = ".*Save"
 ...
-  Purge Migrated Job = yes
+  Purge Migration Job = yes
 }
 \end{verbatim}
 
 \medskip
 
-This project was submited by Dunlap Blake, testing and documentation was funded
+This project was submitted by Dunlap Blake; testing and documentation was funded
 by Bacula Systems.
 
-\section{Changes in Bvfs (Bacula Virtual FileSystem)}
+\subsection{Changes in Bvfs (Bacula Virtual FileSystem)}
 
 Bat has now a bRestore panel that uses Bvfs to display files and
-directories. It's still experimental.
+directories.
 
 \begin{figure}[htbp]
   \centering
-  \includegraphics[width=12cm]{\idir bat-brestore}
+  \includegraphics[width=0.8\linewidth]{bat-brestore}
   \label{fig:batbrestore}
   \caption{Bat Brestore Panel}
 \end{figure}
 
-\texttt{Important}, the Bvfs module is not currently compatible with BaseJobs,
-Copy and Migration jobs.
+the Bvfs module works correctly with BaseJobs, Copy and Migration jobs.
 
 \medskip
 This project was funded by Bacula Systems.
 
-\subsection*{General notes}
+\subsubsection*{General notes}
 
 \begin{itemize}
 \item All fields are separated by a tab
@@ -126,13 +2764,13 @@ This project was funded by Bacula Systems.
   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 accross jobs, the first creation can be slow
+  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 allways use pathid in
+\item Due to potential encoding problem, it's advised to always use pathid in
   queries.
 \end{itemize}
 
-\subsection*{Get dependent jobs from a given JobId}
+\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.
@@ -157,7 +2795,7 @@ compute a complete restore of the system.
 With the \texttt{all} option, the Director will use all defined FileSet for
 this client.
 
-\subsection*{Generating Bvfs cache}
+\subsubsection*{Generating Bvfs cache}
 
 The \texttt{.bvfs\_update} command computes the directory cache for jobs
 specified in argument, or for all jobs if unspecified.
@@ -173,7 +2811,7 @@ Example:
 
 You can run the cache update process in a RunScript after the catalog backup.
 
-\subsection*{Get all versions of a specific file}
+\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
@@ -194,7 +2832,7 @@ Example:
 1  47  52  12  gD HRid IGk D Po Po A P BAA I A   /uPgWaxMgKZlnMti7LChyA  Vol1  1
 \end{verbatim}
 
-\subsection*{List directories}
+\subsubsection*{List directories}
 
 Bvfs allows you to list directories in a specific path.
 \begin{verbatim}
@@ -224,7 +2862,7 @@ In this example, to list directories present in \texttt{regress/}, you can use
 2       0       0       0       A A A A A A A A A A A A A A     tmp/
 \end{verbatim}
 
-\subsection*{List files}
+\subsubsection*{List files}
 
 Bvfs allows you to list files in a specific path.
 \begin{verbatim}
@@ -256,7 +2894,7 @@ In this example, to list files present in \texttt{regress/}, you can use
 1   46   56   12    gD HRie IGk BAA I BMqe/K BMqcPE BMqe+3 D     ficheriro2.txt
 \end{verbatim}
 
-\subsection*{Restore set of files}
+\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.
@@ -270,7 +2908,7 @@ restore file=?b2num ...
 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 serie of two numbers (jobid,
+\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.
 
@@ -285,7 +2923,7 @@ Example:
 OK
 \end{verbatim}
 
-\subsection*{Cleanup after restore}
+\subsubsection*{Cleanup after Restore}
 
 To drop the table used by the restore command, you can use the
 \texttt{.bvfs\_cleanup} command.
@@ -294,7 +2932,16 @@ To drop the table used by the restore command, you can use the
 .bvfs_cleanup path=b20001
 \end{verbatim}
 
-\section{Changes in the pruning algorithm}
+\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
@@ -318,7 +2965,7 @@ and will prune only JobId 2 and 3.
 Job and the \texttt{prune jobs} Bconsole command. If a volume expires after the
 \texttt{VolumeRetention} period, important jobs can be pruned.
 
-\section{Ability to Verify any specified Job}
+\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.
 
@@ -346,7 +2993,7 @@ OK to run? (yes/mod/no):
 This project was funded by Bacula Systems and is available with Bacula
 Enterprise Edition and Community Edition.
 
-\section{Additions to RunScript variables}
+\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.
 
@@ -354,7 +3001,7 @@ command. The Client address is now available through \%h.
 RunAfterJob = "/bin/echo Job=%j JobBytes=%b JobFiles=%F ClientAddress=%h"
 \end{verbatim}
 
-%\section{Changes in drivetype.exe}
+%\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.
@@ -364,11 +3011,11 @@ RunAfterJob = "/bin/echo Job=%j JobBytes=%b JobFiles=%F ClientAddress=%h"
 %\end{verbatim}
 %
 
-\section{Additions to the Plugin API}
+\subsection{Additions to the Plugin API}
 The bfuncs structure has been extended to include a number of
 new entrypoints.
 
-\subsection{bfuncs}
+\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.
@@ -410,6 +3057,12 @@ typedef struct s_baculaFuncs {
   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
@@ -469,7 +3122,7 @@ typedef struct s_baculaFuncs {
   \end{description}
 
 \item [AddRegex] adds a regex expression to the current Options block.
-  The fillowing options are permitted:
+  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).
@@ -477,7 +3130,7 @@ typedef struct s_baculaFuncs {
   \end{description}
 
 \item [AddWild] adds a wildcard expression to the current Options block.
-  The fillowing options are permitted:
+  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).
@@ -493,7 +3146,7 @@ typedef struct s_baculaFuncs {
 \end{description}
   
 
-\subsection{Bacula events}
+\subsubsection{Bacula events}
 The list of events has been extended to include:
 
 \begin{verbatim}
@@ -527,7 +3180,7 @@ typedef enum {
 
 \begin{description}
 \item [bEventCancelCommand] is called whenever the currently
-  running Job is cancelled */
+  running Job is canceled */
 
 \item [bEventVssBackupAddComponents] 
 
@@ -538,13 +3191,13 @@ typedef enum {
   for this purpose.
 \end{description}
 
-\section{ACL enhancements}
+\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
+\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.
@@ -552,7 +3205,7 @@ Access Control Lists (ACLs)
 \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 possitives on detection. Also when acls
+  this should give less false positives on detection. Also when ACLs
   are detected no other acl checks are performed anymore.
 \end{itemize}
 
@@ -560,13 +3213,13 @@ Access Control Lists (ACLs)
 This project was funded by Planets Communications B.V. and ELM Consultancy B.V.
 and is available with Bacula Enterprise Edition and Community Edition.
 
-\section{XATTR enhancements}
+\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 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
@@ -575,7 +3228,7 @@ Extended Attributes (XATTRs)
   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 possitives on detection. Also when xattrs
+  this should give less false positives on detection. Also when xattrs
   are detected no other xattr checks are performed anymore.
 \end{itemize}
 
@@ -583,30 +3236,92 @@ Extended Attributes (XATTRs)
 This project was funded by Planets Communications B.V. and ELM Consultancy B.V.
 and is available with Bacula Enterprise Edition and Community Edition.
 
-\section{Class based database backend drivers}
+\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 boundery
-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 SQLITE2 code was removed (e.g. only
-SQLITE3 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.
+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.
+We also added cursor support for PostgreSQL backend, this improves memory
+usage for large installation.
 
 \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.
+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.
 
-\section{Hash list enhancements}
+\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.
@@ -622,29 +3337,35 @@ 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.
 
+%%
+%%
+%%% =====================================================================
+%%
+%%
+
 
-\chapter{Release Version 5.0.3}
+\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 onging development
+number of bugs found in version 5.0.1 during the ongoing development
 process.
 
-\chapter{Release Version 5.0.2}
+\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 onging development
+number of bugs found in version 5.0.1 during the ongoing development
 process.
 
 %%
 %%
 
-\chapter{New Features in 5.0.1}
+\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 onging development process.
+the ongoing development process.
 
-\section{Truncate Volume after Purge}
+\subsection{Truncate Volume after Purge}
 \label{sec:actiononpurge}
 
 The Pool directive \textbf{ActionOnPurge=Truncate} instructs Bacula to truncate
@@ -693,12 +3414,12 @@ Job {
 \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.
 
-\section{Allow Higher Duplicates}
+\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 rlease.
+file as it will be removed in a future release.
 
-\section{Cancel Lower Level Duplicates}
+\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.
@@ -706,9 +3427,9 @@ 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.
 
-\chapter{New Features in 5.0.0}
+\section{New Features in 5.0.0}
 
-\section{Maximum Concurrent Jobs for Devices}
+\subsection{Maximum Concurrent Jobs for Devices}
 \label{sec:maximumconcurrentjobdevice}
 
 {\bf Maximum Concurrent Jobs} is a new Device directive in the Storage
@@ -721,7 +3442,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
@@ -736,7 +3457,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,
@@ -758,7 +3479,7 @@ 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
@@ -787,7 +3508,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
@@ -831,7 +3552,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
@@ -849,7 +3570,7 @@ 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}
 
 We added two new Pool directives, \texttt{FileRetention} and
@@ -859,15 +3580,15 @@ example, you can decide to increase Retention times for Archive or OffSite Pool.
 
 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 prunning, which means that when the
-Job is prunned, the prunning will apply globally to that particular Job.
+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.
 
-\section{Read-only File Daemon using capabilities}
+\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.
@@ -881,7 +3602,7 @@ root@localhost:~# bacula-fd -k -u nobody -g nobody
 
 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
@@ -913,7 +3634,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
@@ -957,11 +3678,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:
@@ -980,53 +3701,53 @@ 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
 in the table. The old ``Media'' view is now known as ``Pool''.
 \begin{figure}[htbp]
   \centering
-  \includegraphics[width=13cm]{\idir bat-mediaview.eps}
+  \includegraphics[width=0.8\linewidth]{bat-mediaview}
   \label{fig:mediaview}
 \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
-Volume. (cf \ref{fig:mediainfo}.)
+Volume. (cf figure \vref{fig:mediainfo}.)
 \begin{figure}[htbp]
   \centering
-  \includegraphics[width=13cm]{\idir bat11.eps}  
+  \includegraphics[width=0.8\linewidth]{bat11}  
   \caption{Media information}
   \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
-\ref{fig:jobinfo}.)
+figure \vref{fig:jobinfo}.)
 \begin{figure}[htbp]
   \centering
-  \includegraphics[width=13cm]{\idir bat12.eps}  
+  \includegraphics[width=0.8\linewidth]{bat12}  
   \caption{Job information}
   \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}.)
+access a detailed overview of your Autochanger. (cf figure \vref{fig:jobinfo}.)
 \begin{figure}[htbp]
   \centering
-  \includegraphics[width=13cm]{\idir bat13.eps}  
+  \includegraphics[width=0.8\linewidth]{bat13}  
   \caption{Autochanger content}
   \label{fig:achcontent}
 \end{figure}
@@ -1034,15 +3755,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}
@@ -1067,7 +3788,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
@@ -1075,7 +3796,7 @@ 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{Linux 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.  
@@ -1085,12 +3806,12 @@ 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}
@@ -1100,12 +3821,12 @@ to interface to the Director.
 \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 parameterized, which allows you to configure
+  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 parameterize it all in
+  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}
@@ -1126,7 +3847,7 @@ to interface to the Director.
 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.
 
-\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
@@ -1134,7 +3855,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.
@@ -1143,7 +3864,7 @@ removed from the code.
 \item Support for SQLite 2
 \end{itemize}
 
-\section{Misc Changes}
+\subsection{Misc Changes}
 \label{sec:miscchanges}
 
 \begin{itemize}
@@ -1166,15 +3887,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
@@ -1216,7 +3937,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
@@ -1251,7 +3972,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:
@@ -1278,7 +3999,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.
@@ -1292,25 +4013,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
@@ -1337,7 +4058,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
@@ -1480,7 +4201,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
@@ -1489,7 +4210,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.
 
@@ -1541,20 +4262,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
@@ -1569,9 +4290,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.
@@ -1588,7 +4309,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.  
@@ -1639,7 +4360,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
@@ -1650,7 +4371,7 @@ also add --disable-libtool.  Example
 \end{verbatim}
 
 
-\section{Virtual Backup (Vbackup)}
+\subsection{Virtual Backup (Vbackup)}
 \index[general]{Virtual Backup}
 \index[general]{Vbackup}
 
@@ -1776,7 +4497,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
@@ -1788,7 +4509,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.
@@ -1833,7 +4554,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 
@@ -1847,7 +4568,7 @@ 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 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
@@ -1856,22 +4577,22 @@ They are:
  
   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}
   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).
 
-\subsection{Cancel Running Duplicates = \lt{}yes\vb{}no\gt{}}
+\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
@@ -1879,7 +4600,7 @@ They are:
   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
@@ -1892,7 +4613,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}
@@ -1908,14 +4629,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
@@ -1923,7 +4644,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
@@ -1932,7 +4653,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
@@ -1941,7 +4662,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
@@ -1956,7 +4677,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
@@ -2000,7 +4721,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
@@ -2011,7 +4732,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 
@@ -2020,10 +4741,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
@@ -2034,7 +4755,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
@@ -2043,7 +4764,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.
@@ -2074,7 +4795,7 @@ 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
@@ -2157,16 +4878,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
@@ -2193,7 +4914,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
@@ -2205,7 +4926,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
@@ -2235,7 +4956,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 {
@@ -2260,7 +4981,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:
 
@@ -2281,7 +5002,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}, 
@@ -2306,15 +5027,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.
@@ -2348,7 +5069,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)
@@ -2426,10 +5147,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
@@ -2450,7 +5171,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)
@@ -2466,7 +5187,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
@@ -2475,7 +5196,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
@@ -2485,7 +5206,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
@@ -2529,10 +5250,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
@@ -2548,7 +5269,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
@@ -2571,7 +5292,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
@@ -2583,7 +5304,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.
@@ -2593,7 +5314,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
@@ -2603,7 +5324,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 
@@ -2614,7 +5335,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
@@ -2642,17 +5363,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
@@ -2661,13 +5382,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
@@ -2676,21 +5397,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,
@@ -2700,22 +5421,24 @@ 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.
 
 \addcontentsline{lof}{figure}{Job time control directives}
-\includegraphics{\idir different_time.eps}
+\begin{center}
+\includegraphics[width=\linewidth]{different_time}
+\end{center}
 
-\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
@@ -2767,35 +5490,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{MaximumConsoleConnections = \lt{}number\gt{}}
+\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. 
@@ -2818,20 +5541,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