Sophie

Sophie

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

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

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

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

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

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

<LINK REL="next" HREF="Tips_Suggestions.html">
<LINK REL="previous" HREF="Contents.html">
<LINK REL="up" HREF="Bacula_Problem_Resolution_G.html">
<LINK REL="next" HREF="Tips_Suggestions.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html230"
  HREF="Tips_Suggestions.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html224"
  HREF="Bacula_Problem_Resolution_G.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html218"
  HREF="Contents.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html226"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html228"
  HREF="GNU_Free_Documentation_Lice.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html231"
  HREF="Tips_Suggestions.html">Tips and Suggestions</A>
<B> Up:</B> <A NAME="tex2html225"
  HREF="Bacula_Problem_Resolution_G.html">Bacula Problem Resolution Guide</A>
<B> Previous:</B> <A NAME="tex2html219"
  HREF="Contents.html">Contents</A>
 &nbsp; <B>  <A NAME="tex2html227"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html229"
  HREF="GNU_Free_Documentation_Lice.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL>
<LI><A NAME="tex2html232"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION00210000000000000000">What is Bacula?</A>
<LI><A NAME="tex2html233"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION00220000000000000000">Does Bacula support Windows?</A>
<LI><A NAME="tex2html234"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION00230000000000000000">What language is Bacula written in?</A>
<LI><A NAME="tex2html235"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION00240000000000000000">On what machines does Bacula run?</A>
<LI><A NAME="tex2html236"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION00250000000000000000">Is Bacula Stable?</A>
<LI><A NAME="tex2html237"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION00260000000000000000">I'm Getting Authorization Errors. What is Going On? </A>
<LI><A NAME="tex2html238"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION00270000000000000000">Bacula Runs Fine but Cannot Access a Client on a Different Machine.
   Why? </A>
<LI><A NAME="tex2html239"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION00280000000000000000">My Catalog is Full of Test Runs, How Can I Start Over?</A>
<LI><A NAME="tex2html240"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION00290000000000000000">I Run a Restore Job and Bacula Hangs. What do I do?</A>
<LI><A NAME="tex2html241"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002100000000000000000">I Cannot Get My Windows Client to Start Automatically? </A>
<LI><A NAME="tex2html242"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002110000000000000000">My Windows Client Immediately Dies When I Start It</A>
<LI><A NAME="tex2html243"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002120000000000000000">My backups are not working on my Windows 
   Client. What should I do?</A>
<LI><A NAME="tex2html244"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002130000000000000000">All my Jobs are scheduled for the same time. Will this cause
   problems?</A>
<LI><A NAME="tex2html245"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002140000000000000000">Can Bacula Backup My System To Files instead of Tape?</A>
<LI><A NAME="tex2html246"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002150000000000000000">Can I use a dummy device to test the backup?</A>
<LI><A NAME="tex2html247"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002160000000000000000">Can Bacula Backup and Restore Files Bigger than 2 Gigabytes?</A>
<LI><A NAME="tex2html248"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002170000000000000000">I want to stop a job.</A>
<LI><A NAME="tex2html249"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002180000000000000000">Why have You Trademarked the Name Bacula?</A>
<LI><A NAME="tex2html250"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002190000000000000000">Why is the Online Document for Version 1.39 but the Released Version is 1.38?</A>
<LI><A NAME="tex2html251"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002200000000000000000">Does Bacula really save and restore all files?</A>
<LI><A NAME="tex2html252"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002210000000000000000">I want an Incremental but Bacula runs it as a Full backup. Why?</A>
<LI><A NAME="tex2html253"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002220000000000000000">Do you really handle unlimited path lengths?</A>
<LI><A NAME="tex2html254"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002230000000000000000">What Is the Really Unique Feature of Bacula?</A>
<LI><A NAME="tex2html255"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002240000000000000000">How can I force one job to run after another?</A>
<LI><A NAME="tex2html256"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002250000000000000000">I Am Not Getting Email Notification, What Can I Do? </A>
<LI><A NAME="tex2html257"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002260000000000000000">My retention periods don't work</A>
<LI><A NAME="tex2html258"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002270000000000000000">Why aren't my files compressed?</A>
<LI><A NAME="tex2html259"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002280000000000000000">Incremental backups are not working</A>
<LI><A NAME="tex2html260"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002290000000000000000">I am waiting forever for a backup of an offsite machine</A>
<LI><A NAME="tex2html261"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002300000000000000000">SSH hangs forever after starting Bacula</A>
<LI><A NAME="tex2html262"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002310000000000000000">I'm confused by retention periods</A>
<LI><A NAME="tex2html263"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002320000000000000000">MaxVolumeSize is ignored</A>
<LI><A NAME="tex2html264"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002330000000000000000">I get a Connection refused when connecting to my Client</A>
<LI><A NAME="tex2html265"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002340000000000000000">Long running jobs die with Pipe Error</A>
<LI><A NAME="tex2html266"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002350000000000000000">How do I tell the Job which Volume to use?</A>
<LI><A NAME="tex2html267"
  HREF="Bacula_Frequently_Asked_Que.html#SECTION002360000000000000000">Password generation</A>
</UL>
<!--End of Table of Child-Links-->
<HR>

<H1><A NAME="SECTION00200000000000000000"></A>
<A NAME="FaqChapter"></A>
<BR>
Bacula Frequently Asked Questions
</H1>
<A NAME="66"></A>
<A NAME="67"></A>

<P>
These are questions that have been submitted over time by the
Bacula users. The following
FAQ is very useful, but it is not always up to date 
with newer information, so after reading it, if you don't find what you 
want, you might try the Bacula wiki maintained by Frank Sweetser, which
contains more than just a FAQ:
http://wiki.bacula.orghttp://wiki.bacula.org
or go directly to the FAQ at: 
http://wiki.bacula.org/doku.php?id=faq
http://wiki.bacula.org/doku.php?id=faq.

<P>
Please also see
the bugs sectionBugsChapter of this document for a list
of known bugs and solutions.

<P>
<DL>
<DD><A NAME="what"></A></DD>
</DL>
<H1><A NAME="SECTION00210000000000000000">
What is Bacula?</A>
</H1>
[What is <B>Bacula</B>? ]
   <A NAME="78"></A>
   <B>Bacula</B> is a network backup and restore program. 

<P>

<H1><A NAME="SECTION00220000000000000000">
Does Bacula support Windows?</A>
</H1>
[Does Bacula support Windows?]
<A NAME="81"></A>
   Yes, Bacula compiles and runs on Windows machines (Win98, WinMe, WinXP,
   WinNT, Win2003, and Win2000).  We provide a binary version of the Client
   (bacula-fd), but have not tested the Director nor the Storage daemon.
   Note, Win95 is no longer supported because it doesn't have the
   GetFileAttributesExA API call.

<P>
<A NAME="lang"></A>
<H1><A NAME="SECTION00230000000000000000">
What language is Bacula written in?</A>
</H1>
[What language is Bacula written in?]
<A NAME="84"></A>
   It is written in C++, but it is mostly C  code using only a limited set of
   the C++ extensions  over C.  Thus Bacula is completely  compiled using the
   C++ compiler. There are several modules, including the Win32 interface, that
   are written using the  object oriented C++ features. Over time, we are slowly
   adding a larger  subset of C++.  

<P>
<A NAME="run"></A>
<H1><A NAME="SECTION00240000000000000000">
On what machines does Bacula run?</A>
</H1>
[On what machines does Bacula run? ]
   <A NAME="87"></A>
   <B>Bacula</B> builds and executes on Red Hat Linux (versions RH7.1-RHEL
   4.0, Fedora, SuSE, Gentoo, Debian, Mandriva, ...), FreeBSD, Solaris,
   Alpha, SGI (client), NetBSD, OpenBSD, Mac OS X (client), and Win32.

<P>
Bacula has been my only backup tool for over seven years backing up 8
   machines nightly (6 Linux boxes running SuSE, previously
   Red Hat and Fedora, a WinXP machine, and a WinNT machine).

<P>
<A NAME="stable"></A>
<H1><A NAME="SECTION00250000000000000000">
Is Bacula Stable?</A>
</H1>
[Is Bacula Stable? ]
<A NAME="91"></A>
   Yes, it is remarkably stable, but remember, there are still a lot of
   unimplemented or partially implemented features.  With a program of this
   size (150,000+ lines of C++ code not including the SQL programs) there
   are bound to be bugs.  The current test environment (a twisted pair
   local network and a HP DLT backup tape) is not exactly ideal, so
   additional testing on other sites is necessary.  The File daemon has
   never crashed - running months at a time with no intervention.  The
   Storage daemon is remarkably stable with most of the problems arising
   during labeling or switching tapes.  Storage daemon crashes are rare
   but running multiple drives and simultaneous jobs sometimes (rarely)
   problems.
   The Director, given the multitude of functions it fulfills is also
   relatively stable.  In a production environment, it rarely if ever
   crashes.  Of the three daemons, the Director is the most prone to having
   problems.  Still, it frequently runs several months with no problems.

<P>
There are a number of reasons for this stability.  

<P>

<OL>
<LI>The program is constantly checking the chain of allocated
      memory buffers to ensure that no overruns have occurred.  
<BR></LI>
<LI>All  memory leaks (orphaned buffers) are reported each time the
      program  terminates.
<BR></LI>
<LI>Any signal (segmentation fault, ...) generates a 
      traceback that is emailed to the developer.  This permits quick
      resolution of bugs even if they only show up rarely in a production
      system.
<BR></LI>
<LI>There is a reasonably comprehensive set of regression tests
      that avoids re-creating the most common errors in new versions of
      Bacula.
   
</LI>
</OL>

<P>
<A NAME="AuthorizationErrors"></A>
<H1><A NAME="SECTION00260000000000000000">
I'm Getting Authorization Errors. What is Going On? </A>
</H1>
[I'm Getting Authorization Errors. What is Going On? ]
<A NAME="96"></A>
<A NAME="97"></A>
   For security reasons, Bacula requires that both  the File daemon and the
   Storage daemon know the name  of the Director as well as its password. As a
   consequence,  if you change the Director's name or password, you must  make
   the corresponding change in the Storage daemon's and  in the File daemon's
   configuration files.  

<P>
During the authorization process, the Storage daemon and File daemon
   also require that the Director authenticates itself, so both ends
   require the other to have the correct name and password.

<P>
If you have edited the conf files and modified any name or any password,
   and you are getting authentication errors, then your best bet is to go
   back to the original conf files generated by the Bacula installation
   process.  Make only the absolutely necessary modifications to these
   files - e.g.  add the correct email address.  Then follow the
   instructions in the  Running BaculaTutorialChapter chapter of
   this manual.  You will run a backup to disk and a restore.  Only when
   that works, should you begin customization of the conf files.

<P>
Another reason that you can get authentication errors is if you are
   running Multiple Concurrent Jobs in the Director, but you have not set
   them in the File daemon or the Storage daemon.  Once you reach their
   limit, they will reject the connection producing authentication (or
   connection) errors.

<P>
If you are having problems connecting to a Windows machine that
   previously worked, you might try restarting the Bacula service since
   Windows frequently encounters networking connection problems.

<P>
Some users report that authentication fails if there is not a proper
   reverse DNS lookup entry for the machine.  This seems to be a
   requirement of gethostbyname(), which is what Bacula uses to translate
   names into IP addresses.  If you cannot add a reverse DNS entry, or you
   don't know how to do so, you can avoid the problem by specifying an IP
   address rather than a machine name in the appropriate Bacula conf file.

<P>
Here is a picture that indicates what names/passwords in which
   files/Resources must match up:

<P>
<IMG
 WIDTH="415" HEIGHT="467" ALIGN="BOTTOM" BORDER="0"
 SRC="img2.png"
 ALT="\includegraphics{Conf-Diagram.eps}">  

<P>
In the left column, you will find the Director, Storage, and  Client
   resources, with their names and passwords - these  are all in <B>   bacula-dir.conf</B>. The right column is where the corresponding values
   should be found in the  Console, Storage daemon (SD), and File daemon (FD)
   configuration  files.  

<P>
Another thing to check is to ensure that the Bacula component you are
   trying to access has <B>Maximum Concurrent Jobs</B> set large enough to
   handle each of the Jobs and the Console that want to connect
   simultaneously.  Once the maximum connections has been reached, each
   Bacula component will reject all new connections.

<P>
Finally, make sure you have no <B>hosts.allow</B> or <B>hosts.deny</B>
   file that is not permitting access to the site trying to connect.

<P>
<A NAME="AccessProblems"></A>
<H1><A NAME="SECTION00270000000000000000">
Bacula Runs Fine but Cannot Access a Client on a Different Machine.
   Why? </A>
</H1>
[Bacula Runs Fine but Cannot Access a Client on a Different Machine.
   Why? ]
<A NAME="107"></A>
   There are several reasons why Bacula could not contact a client  on a
   different machine. They are:  

<P>

<UL>
<LI>It is a Windows Client, and the client died because of an  improper
   configuration file. Check that the Bacula icon is in  the system tray and the
   the menu items work. If the client has  died, the icon will disappear only
   when you move the mouse over  the icon.  
</LI>
<LI>The Client address or port is incorrect or not resolved by  DNS. See if
   you can ping the client machine using the same  address as in the Client
   record.  
</LI>
<LI>You have a firewall, and it is blocking traffic on port  9102 between
   the Director's machine and the Client's  machine (or on port 9103 between the
   Client and the Storage daemon  machines).  
</LI>
<LI>Your password or names are not correct in both the Director and  the
   Client machine. Try configuring everything identical to  how you run the
   client on the same machine as the Director, but  just change the Address. If
   that works, make the other changes  one step at a time until it works.  
</LI>
<LI>You may also be having problems between your File daemon and your
   Storage daemon. The name you use in the Storage resource of your
   Director's conf file must be known (resolvable) by the File daemon, 
   because it is passed symbolically to the File daemon, which then
   resolves it to get an IP address used to contact the Storage daemon.
</LI>
<LI>You may have a <B>hosts.allow</B> or <B>hosts.deny</B> file that is
   not permitting access.
</LI>
</UL>

<P>
<A NAME="startover"></A>
<H1><A NAME="SECTION00280000000000000000">
My Catalog is Full of Test Runs, How Can I Start Over?</A>
</H1>
[My Catalog is Full of Test Runs, How Can I Start Over? ]
  <A NAME="114"></A>
  If you are using MySQL do the following:

<P>
<PRE>
   cd &lt;bacula-source&gt;/src/cats
   ./drop_mysql_tables
   ./make_mysql_tables
</PRE>
<P>
If you are using SQLite, do the following:

<P>
<PRE>
   Delete bacula.db from your working directory.
   cd &lt;bacula-source&gt;/src/cats
   ./drop_sqlite_tables
   ./make_sqlite_tables
</PRE>
<P>
Then write an EOF on each tape you used with <B>Bacula</B> using: 

<P>
<PRE>
mt -f /dev/st0 rewind
mt -f /dev/st0 weof
</PRE>
<P>
where you need to adjust the device name for your system.  

<P>
<A NAME="restorehang"></A>
<H1><A NAME="SECTION00290000000000000000">
I Run a Restore Job and Bacula Hangs. What do I do?</A>
</H1>
[I Run a Restore Job and Bacula Hangs. What do I do?]
<A NAME="124"></A>
   On Bacula version 1.25 and prior, it expects you to have the correct
   tape mounted prior to a restore.  On Bacula version 1.26 and higher, it
   will ask you for the tape, and if the wrong one is mounted, it will
   inform you.

<P>
If you have previously done an <B>unmount</B> command, all Storage daemon
   sessions (jobs) will be completely blocked from using the drive
   unmounted, so be sure to do a <B>mount</B> after your unmount.  If in
   doubt, do a second <B>mount</B>, it won't cause any harm.

<P>
<A NAME="windowstart"></A>
<H1><A NAME="SECTION002100000000000000000">
I Cannot Get My Windows Client to Start Automatically? </A>
</H1>
[I Cannot Get My Windows Client to Start Automatically? ]
<A NAME="130"></A>
   You are probably having one of two problems: either the Client is dying
   due to an incorrect configuration file, or you didn't do the
   Installation commands necessary to install it as a Windows Service.

<P>
For the first problem, see the next FAQ question.  For the second
   problem, please review the  Windows Installation
   instructionsWin32Chapter in this manual.

<P>
<A NAME="windowsdie"></A>
<H1><A NAME="SECTION002110000000000000000">
My Windows Client Immediately Dies When I Start It</A>
</H1>
[My Windows Client Immediately Dies When I Start It]
<A NAME="135"></A>
The most common problem is either that the configuration file is not where
it expects it to be, or that there is an error in the configuration file.
You must have the configuration file in <B>c:&#92;bacula&#92;bin&#92;bacula-fd.conf</B>.

<P>
To <B>see</B> what is going on when the File daemon starts  on Windows, do the
following:  

<P>
<PRE>
    Start a DOS shell Window.
    cd c:\bacula\bin
    bacula-fd -d100 -c c:\bacula\bin\bacula-fd.conf
</PRE>
<P>
This will cause the FD to write a file <B>bacula.trace</B>  in the current
directory, which you can examine and thereby determine  the problem.  

<P>
<A NAME="scroll"></A>[When I Start the Console, the Error Messages Fly By. How can I see
   them? ]
<A NAME="144"></A>
   Either use a shell window with a scroll bar, or use the gnome-console.
   In any case, you probably should be logging all output to a file, and
   then you can simply view the file using an editor or the <B>less</B>
   program.  To log all output, I have the following in my Director's
   Message resource definition:

<P>
<PRE>
    append = "/home/kern/bacula/bin/log" = all, !skipped
</PRE>
<P>
Obviously you will want to change the filename to be appropriate  for your
system.  

<P>
<A NAME="nobackup"></A>
<H1><A NAME="SECTION002120000000000000000">
My backups are not working on my Windows 
   Client. What should I do?</A>
</H1>
[I didn't realize that the backups were not working on my Windows 
   Client. What should I do? ]
<A NAME="150"></A>
You should be sending yourself an email message for each job. This will  avoid
the possibility of not knowing about a failed backup. To do so  put something
like:  

<P>
<PRE>
  Mail = yourname@yourdomain = all, !skipped
</PRE>
<P>
in your Director's message resource.  You should then receive one email for
each Job that ran.  When you are comfortable with what is going on (it took
me 9 months), you might change that to:

<P>
<PRE>
   MailOnError = yourname@yourdomain = all, !skipped
</PRE>
<P>
then you only get email messages when a Job errors as is the case  for your
Windows machine.  

<P>
You should also be logging the Director's messages, please see the  previous
FAQ for how to do so.  

<P>
<A NAME="sched"></A>
<H1><A NAME="SECTION002130000000000000000">
All my Jobs are scheduled for the same time. Will this cause
   problems?</A>
</H1>
[All my Jobs are scheduled for the same time. Will this cause
   problems? ]
<A NAME="157"></A>
   No, not at all.  Bacula will schedule all the Jobs at the same time, but
   will run them one after another unless you have increased the number of
   simultaneous jobs in the configuration files for the Director, the File
   daemon, and the Storage daemon.  The appropriate configuration record is
   <B>Maximum Concurrent Jobs = nn</B>.  At the current time, we recommend
   that you leave this set to <B>1</B> for the Director.

<P>
<A NAME="disk"></A>
<H1><A NAME="SECTION002140000000000000000">
Can Bacula Backup My System To Files instead of Tape?</A>
</H1>
[Can Bacula Backup My System To Files instead of Tape? ]
<A NAME="162"></A>
   Yes, in principle, Bacula can backup to any storage medium as long as
   you have correctly defined that medium in the Storage daemon's Device
   resource.  For an example of how to backup to files, please see the
   Pruning ExamplePruningExample in the Recycling chapter of this
   manual.  Also, there is a whole chapter devoted to Basic Volume
   ManagementDiskChapter.  This chapter was originally written to
   explain how to write to disk, but was expanded to include volume
   management.  It is, however, still quite a good chapter to read.

<P>
<A NAME="testbackup"></A>
<H1><A NAME="SECTION002150000000000000000">
Can I use a dummy device to test the backup?</A>
</H1>
   Yes, to have a <I>Virtual</I> device which just consumes data, you can use a 
   FIFO device (see Stored configurationSetupFifo).
   It's useful to test a backup.
<PRE>
Device {
  Name = NULL
  Media Type = NULL
  Device Type = Fifo
  Archive Device = /dev/null
  LabelMedia = yes
  Random Access = no
  AutomaticMount = no
  RemovableMedia = no
  MaximumOpenWait = 60
  AlwaysOpen = no
}
</PRE>
<P>
<A NAME="bigfiles"></A>
<H1><A NAME="SECTION002160000000000000000">
Can Bacula Backup and Restore Files Bigger than 2 Gigabytes?</A>
</H1>
[Can Bacula Backup and Restore Files Bigger than 2 Gigabytes?]
<A NAME="176"></A>
If your operating system permits it, and you are running Bacula version
1.26 or later, the answer is yes.  To the best of our knowledge all client
system supported by Bacula can handle files bigger 2 Gigabytes.

<P>
<A NAME="cancel"></A>
<H1><A NAME="SECTION002170000000000000000">
I want to stop a job.</A>
</H1>
[I Started A Job then Decided I Really Did Not Want to Run It. Is
   there  a better way than <B>./bacula stop</B> to stop it?]
<A NAME="180"></A> 
   Yes, you normally should use the Console command <B>cancel</B> to cancel
   a Job that is either scheduled or running.  If the Job is scheduled, it
   will be marked for cancellation and will be canceled when it is
   scheduled to start.  If it is running, it will normally terminate after
   a few minutes.  If the Job is waiting on a tape mount, you may need to
   do a <B>mount</B> command before it will be canceled.

<P>
<A NAME="trademark"></A>
<H1><A NAME="SECTION002180000000000000000">
Why have You Trademarked the Name Bacula?</A>
</H1>
[Why have You Trademarked the Name
   Bacula<FONT SIZE="-1"><SUP><IMG
 WIDTH="19" HEIGHT="24" ALIGN="MIDDLE" BORDER="0"
 SRC="img3.png"
 ALT="\textregistered"></SUP></FONT>?]
<A NAME="187"></A>
We have trademarked the name Bacula to ensure that all media  written by any
program named Bacula will always be compatible. Anyone  may use the name
Bacula, even in a derivative product as long as it  remains totally compatible
in all respects with the program defined  here.

<P>
<A NAME="docversion"></A>
<H1><A NAME="SECTION002190000000000000000">
Why is the Online Document for Version 1.39 but the Released Version is 1.38?</A>
</H1>
[Why is the Online Document for Version 1.39 of Bacula when the
   Current Version is 1.38?]
<A NAME="190"></A>
As Bacula is being developed, the document is also being enhanced, more
often than not it has clarifications of existing features that can be very
useful to our users, so we publish the very latest document.  Fortunately
it is rare that there are confusions with new features.

<P>
If you want to read a document that pertains only to a specific  version,
please use the one distributed in the source code.  The web site also has 
online versions of both the released manual and the current development
manual.

<P>
<A NAME="sure"></A>
<H1><A NAME="SECTION002200000000000000000">
Does Bacula really save and restore all files?</A>
</H1>
[How Can I Be Sure that Bacula Really Saves and Restores All Files? ]
<A NAME="193"></A>
   It is really quite simple, but took me a while to figure
   out how to "prove" it.  First make a Bacula Rescue disk, see the
   Disaster Recovery Using BaculaRescueChapter chapter
   of this manual.
   Second, you run a full backup of all your files on all partitions.
   Third, you run an Verify InitCatalog Job on the same FileSet, which
   effectively makes a record of all the files on your system.  Fourth, you
   run a Verify Catalog job and assure yourself that nothing has changed
   (well, between an InitCatalog and Catalog one doesn't expect anything).
   Then do the unthinkable, write zeros on your MBR (master boot record)
   wiping out your hard disk.  Now, restore your whole system using your
   Bacula Rescue disk and the Full backup you made, and finally re-run the
   Verify Catalog job.  You will see that with the exception of the
   directory modification and access dates and the files changed during the
   boot, your system is identical to what it was before you wiped your hard
   disk.
   Alternatively you could do the wiping and restoring to another computer
   of the same type.

<P>
<A NAME="upgrade"></A>
<H1><A NAME="SECTION002210000000000000000">
I want an Incremental but Bacula runs it as a Full backup. Why?</A>
</H1>
[I did a Full backup last week, but now in running an Incremental,
   Bacula  says it did not find a FULL backup, so it did a FULL backup. Why?]
<A NAME="198"></A>
   Before doing an Incremental or a Differential
   backup, Bacula checks to see if there was a prior Full backup of the
   same Job that terminated successfully.  If so, it uses the date that
   full backup started as the time for comparing if files have changed.  If
   Bacula does not find a successful full backup, it proceeds to do one.
   Perhaps you canceled the full backup, or it terminated in error.  In
   such cases, the full backup will not be successful.  You can check by
   entering <B>list jobs</B> and look to see if there is a prior Job with
   the same Name that has Level F and JobStatus T (normal termination).

<P>
Another reason why Bacula may not find a suitable Full backup is that
   every time you change the FileSet, Bacula will require a new Full
   backup.  This is necessary to ensure that all files are properly backed
   up in the case where you have added more files to the FileSet.
   Beginning with version 1.31, the FileSets are also dated when they are
   created, and this date is displayed with the name when you are listing
   or selecting a FileSet.  For more on backup levels see below.

<P>
See also <B>Ignore FileSet Changes</B> in the
   FileSet Resource definitionFileSetResource in the Director
   chapter of this document.

<P>
<A NAME="filenamelengths"></A>
<H1><A NAME="SECTION002220000000000000000">
Do you really handle unlimited path lengths?</A>
</H1>
[How Can You Claim to Handle Unlimited Path and Filename Lengths
   when  All Other Programs Have Fixed Limits?]
<A NAME="205"></A> 
   Most of those other programs have been around for a long time, in fact
   since the beginning of Unix, which means that they were designed for
   rather small fixed length path and filename lengths.  Over the years,
   these restrictions have been relaxed allowing longer names.  Bacula on
   the other hand was designed in 2000, and so from the start, Path and
   Filenames have been kept in buffers that start at 256 bytes in length,
   but can grow as needed to handle any length.  Most of the work is
   carried out by lower level routines making the coding rather easy.

<P>
Note that due to limitations Win32 path and filenames cannot exceed
   260 characters. By using Win32 Unicode functions, we will remove this
   restriction in later versions of Bacula.

<P>
<A NAME="unique"></A>
<H1><A NAME="SECTION002230000000000000000">
What Is the Really Unique Feature of Bacula?</A>
</H1>
[What Is the Really Unique Feature of Bacula?]
<A NAME="208"></A> 
   Well, it is hard to come up with unique features when backup programs
   for Unix machines have been around since the 1960s.  That said, I
   believe that Bacula is the first and only program to use a standard SQL
   interface to catalog its database.  Although this adds a bit of
   complexity and possibly overhead, it provides an amazingly rich set of
   features that are easy to program and enhance.  The current code has
   barely scratched the surface in this regard (version 1.38).

<P>
The second feature, which gives a lot of power and flexibility to Bacula
   is the Bootstrap record definition.

<P>
The third unique feature, which is currently (1.30) unimplemented, and
   thus can be called vaporware :-), is Base level saves.  When
   implemented, this will enormously reduce tape usage.

<P>
<A NAME="sequence"></A>
<H1><A NAME="SECTION002240000000000000000">
How can I force one job to run after another?</A>
</H1>
[If I Run Multiple Simultaneous Jobs, How Can I Force One
   Particular  Job to Run After Another Job? ]
<A NAME="211"></A>
Yes, you can set Priorities on your jobs so that they  run in the order you
specify. Please see:  
the Priority recordPriority in the  Job resource.

<P>
<A NAME="nomail"></A>
<H1><A NAME="SECTION002250000000000000000">
I Am Not Getting Email Notification, What Can I Do? </A>
</H1>
[I Am Not Getting Email Notification, What Can I Do? ]
<A NAME="216"></A>
   The most common problem is that you have not specified a fully qualified
   email address and your bsmtp server is rejecting the mail.  The next
   most common problem is that your bsmtp server doesn't like the syntax on
   the From part of the message.  For more details on this and other
   problems, please see the  Getting Email Notification to
   Workemail section of the Tips chapter of this manual.  The section
    Getting Notified of Job Completionnotification of the Tips
   chapter may also be useful.  For more information on the <B>bsmtp</B>
   mail program, please see bsmtp in the Volume Utility Tools
   chapterbsmtp of this manual.

<P>
<A NAME="periods"></A>
<H1><A NAME="SECTION002260000000000000000">
My retention periods don't work</A>
</H1>
[I Change Recycling, Retention Periods, or File Sizes in my Pool
   Resource  and they Still Don't Work.]
<A NAME="226"></A>
<A NAME="227"></A>
<A NAME="228"></A>
  The different variables associated with a Pool are defined in the  Pool
  Resource, but are actually read by Bacula from the Catalog database.  On
  Bacula versions prior to 1.30, after changing your Pool Resource,  you must
  manually update the corresponding values in the Catalog by  using the <B>  update pool</B> command in the Console program. In Bacula  version 1.30, Bacula
  does this for you automatically every time it  starts.  

<P>
When Bacula creates a Media record (Volume), it uses many default  values from
  the Pool record. If you subsequently change the Pool  record, the new values
  will be used as a default for the next Volume  that is created, but if you
  want the new values to apply to existing  Volumes, you must manually update
  the Volume Catalog entry using  the <B>update volume</B> command in the Console
  program. 

<P>
<A NAME="CompressionNotWorking"></A>
<H1><A NAME="SECTION002270000000000000000">
Why aren't my files compressed?</A>
</H1>
[I Have Configured Compression On, But None of My Files Are
   Compressed.  Why?]
<A NAME="233"></A>
   There are two kinds of compression. One is tape compression. This  is done by
   the tape drive hardware, and you either enable or disable  it with system
   tools such as <B>mt</B>. This compression works  independently of Bacula,  
   and when it is enabled, you should not use the Bacula software 
   compression.

<P>
Bacula also has software compression code in the File daemons, which you
   normally need to enable only when backing up to file Volumes.  There are
   two conditions necessary to enable the Bacula software compression.

<P>

<OL>
<LI>You must have the zip development libraries loaded on your system
   when building Bacula and Bacula must find this library, normally <B>   /usr/lib/libz.a</B>.  On Red Hat systems, this library is provided by the
   <B>zlib-devel</B> rpm.

<P>
If the library is found by Bacula during the <B>./configure</B> it will
   be mentioned in the <B>config.out</B> line by:

<P>
<PRE>
    ZLIB support:  yes
</PRE>
<P>
</LI>
<LI>You must add the <B>compression=gzip</B> option on your  Include
   statement in the Director's configuration file.  
</LI>
</OL>

<P>
<A NAME="NewTape"></A>[Bacula is Asking for a New Tape After 2 GB of Data but My Tape
   holds 33 GB. Why?]
<A NAME="245"></A>
There are several reasons why Bacula will request a new tape.  

<P>

<UL>
<LI>There is an I/O error on the tape. Bacula prints an error message  and
   requests a new tape. Bacula does not attempt to continue writing  after an
   I/O error.  
</LI>
<LI>Bacula encounters and end of medium on the tape. This is not always 
   distinguishable from an I/O error.  
</LI>
<LI>You have specifically set some size limitation on the tape. For  example
   the <B>Maximum Volume Bytes</B> or <B>Maximum Volume Files</B>  in the
   Director's Pool resource, or <B>Maximum Volume Size</B> in  the Storage
   daemon's Device resource.  
</LI>
</UL>

<P>
<A NAME="LevelChanging"></A>
<H1><A NAME="SECTION002280000000000000000">
Incremental backups are not working</A>
</H1>
[Bacula is Not Doing the Right Thing When I Request an Incremental
   Backup. Why?]
<A NAME="253"></A>
   As explained in one of the previous questions, Bacula will automatically
   upgrade an Incremental or Differential job to a Full backup if it cannot
   find a prior Full backup or a suitable Full backup.  For the gory
   details on how/when Bacula decides to upgrade levels please see the
   Level recordLevel in the Director's configuration chapter of
   this manual.

<P>
If after reading the above mentioned section, you believe that Bacula  is not
   correctly handling the level (Differential/Incremental),  please send us the
   following information for analysis:  

<P>

<UL>
<LI>Your Director's configuration file.  
</LI>
<LI>The output from <B>list jobs</B> covering the period where you  are
   having the problem.  
</LI>
<LI>The Job report output from the prior Full save (not critical).  
</LI>
<LI>An <B>llist jobid=nnn</B> where nnn is the JobId of the prior  Full save.

<P>
</LI>
<LI>The Job report output from the save that is doing the  wrong thing (not
   critical).  
</LI>
<LI>An <B>llist jobid=nnn</B> where nnn is the JobId of the job  that was not
   correct.  
</LI>
<LI>An explanation of what job went wrong and why you think it did.  
   
</LI>
</UL>

<P>
The above information can allow us to analyze what happened, without it, 
there is not much we can do.  

<P>
<A NAME="WaitForever"></A>
<H1><A NAME="SECTION002290000000000000000">
I am waiting forever for a backup of an offsite machine</A>
</H1>
[I am Backing Up an Offsite Machine with an Unreliable Connection.
   The  Director Waits Forever for the Client to Contact the SD. What Can  I
   Do?]
<A NAME="263"></A>
   Bacula was written on the assumption that it will have a good TCP/IP
   connection between all the daemons.  As a consequence, the current
   Bacula doesn't deal with faulty connections very well.  This situation
   is slowly being corrected over time.

<P>
There are several things you can do to improve the situation.  

<P>

<UL>
<LI>Upgrade to version 1.32 and use the new SDConnectTimeout record.  For
   example, set:  

<P>
<PRE>
          SD Connect Timeout = 5 min
</PRE>
<P>
in the FileDaemon resource.  
</LI>
<LI>Run these kinds of jobs after all other jobs.  
   
</LI>
</UL>

<P>
<A NAME="sshHanging"></A>
<H1><A NAME="SECTION002300000000000000000">
SSH hangs forever after starting Bacula</A>
</H1>
[When I ssh into a machine and start Bacula then attempt to exit, 
   ssh hangs forever.]
<A NAME="270"></A>
   This happens because Bacula leaves stdin, stdout, and stderr open for
   debug purposes.  To avoid it, the simplest thing to do is to redirect
   the output of those files to <B>/dev/null</B> or another file in your
   startup script (the Red Hat autostart scripts do this automatically).
   For example, you start the Director with:

<P>
<PRE>
    bacula-dir -c bacula-dir.conf ... &gt;/dev/null 0&gt;\&amp;1 2&gt;\&amp;1
</PRE>
<P>
and likewise for the other daemons.  

<P>
<A NAME="RetentionPeriods"></A>
<H1><A NAME="SECTION002310000000000000000">
I'm confused by retention periods</A>
</H1>
[I'm confused by the different Retention periods: File Retention, 
   Job Retention, Volume Retention. Why are there so many?]
<A NAME="276"></A>
   Yes, this certainly can be confusing.  The basic reason for so many is
   to allow flexibility.  The File records take quite a lot of space in the
   catalog, so they are typically records you want to remove rather
   quickly.  The Job records, take very little space, and they can be
   useful even without the File records to see what Jobs actually ran and
   when.  One must understand that if the File records are removed from the
   catalog, you cannot use the <B>restore</B> command to restore an
   individual file since Bacula no longer knows where it is.  However, as
   long as the Volume Retention period has not expired, the data will still
   be on the tape, and can be recovered from the tape.

<P>
For example, I keep a 30 day retention period for my Files to keep my
   catalog from getting too big, but I keep my tapes for a minimum of one
   year, just in case.

<P>
<A NAME="MaxVolumeSize"></A>
<H1><A NAME="SECTION002320000000000000000">
MaxVolumeSize is ignored</A>
</H1>
[Why Does Bacula Ignore the MaxVolumeSize Set in my Pool?]
<A NAME="280"></A>
   The MaxVolumeSize that Bacula uses comes from the Media record, so most
   likely you changed your Pool, which is used as the default for creating
   Media records, <B>after</B> you created your Volume.  Check what is in
   the Media record by doing:

<P>
<PRE>
llist Volume=xxx
</PRE>
<P>
If it doesn't have the right value, you can use: 

<P>
<PRE>
update Volume=xxx
</PRE>
<P>
to change it.  

<P>
<A NAME="ConnectionRefused"></A>
<H1><A NAME="SECTION002330000000000000000">
I get a Connection refused when connecting to my Client</A>
</H1>
[In connecting to my Client, I get "ERR:Connection Refused.  Packet
   Size too big from File daemon:192.168.1.4:9102" Why?]
<A NAME="288"></A>
   This is typically a communications error resulting  from one of the
   following:

<P>

<UL>
<LI>Old versions of Bacula, usually a Win32 client, where two  threads were
   using the same I/O packet. Fixed in more recent  versions. Please upgrade.  
</LI>
<LI>Some other program such as an HP Printer using the same  port (9102 in
   this case).  
</LI>
</UL>

<P>
If it is neither of the above, please submit a bug report at  
bugs.bacula.orghttp://bugs.bacula.org.  

<P>
Another solution might be to run the daemon with the debug  option by:  

<P>
<PRE>
    Start a DOS shell Window.
    cd c:\bacula\bin
    bacula-fd -d100 -c c:\bacula\bin\bacula-fd.conf
</PRE>
<P>
This will cause the FD to write a file <B>bacula.trace</B>  in the current
directory, which you can examine to determine  the problem.  

<P>

<H1><A NAME="SECTION002340000000000000000">
Long running jobs die with Pipe Error</A>
</H1>
[During long running jobs my File daemon dies with Pipe Error, or
       some other communications error. Why?]
<A NAME="297"></A>
<A NAME="298"></A>
<A NAME="299"></A>
<A NAME="300"></A>
   There are a number of reasons why a connection might break.
   Most often, it is a router between your two computers that times out
   inactive lines (not respecting the keepalive feature that Bacula uses).
   In that case, you can use the <B>Heartbeat Interval</B> directive in
   both the Storage daemon and the File daemon. 

<P>
In at least one case, the problem has been a bad driver for a Win32
   NVidia NForce 3 ethernet card with driver (4.4.2 17/05/2004). 
   In this case, a good driver is (4.8.2.0 06/04/2005).  Moral of
   the story, make sure you have the latest ethernet drivers
   loaded, or use the following workaround as suggested by Thomas
   Simmons for Win32 machines:

<P>
Browse to:
   Start  Control Panel  Network Connections

<P>
Right click the connection for the nvidia adapter and select properties. 
   Under the General tab, click "Configure...". Under the Advanced tab set 
   "Checksum Offload" to disabled and click OK to save the change.  

<P>
Lack of communications, or communications that get interrupted can
   also be caused by Linux firewalls where you have a rule that throttles
   connections or traffic.  For example, if you have:

<P>
<PRE>
iptables -t filter -A INPUT -m limit --limit 3/second --limit-burst 3 -j DROP
</PRE>
<P>
you will want to add the following rules <B>before</B> the above rule:
<PRE>
iptables -t filter -A INPUT --dport 9101 -j ACCEPT
iptables -t filter -A INPUT --dport 9102 -j ACCEPT
iptables -t filter -A INPUT --dport 9103 -j ACCEPT
</PRE>   This will ensure that any Bacula traffic will not get terminated because
   of high usage rates.

<P>

<H1><A NAME="SECTION002350000000000000000">
How do I tell the Job which Volume to use?</A>
</H1>
[I can't figure out how to tell the job which volume to use]
   <A NAME="310"></A>
  This is an interesting statement. I now see that a number of people new to
  Bacula have the same problem as you, probably from using programs like tar.

<P>
In fact, you do not tell Bacula what tapes to use.  It is the inverse.  Bacula
  tells you want tapes it wants.  You put tapes at its disposition and it
  chooses.  

<P>
Now, if you *really* want to be tricky and try to tell Bacula what to do, it
  will be reasonable if for example you mount a valid tape that it can use on a
  drive, it will most likely go ahead and use it.  It also has a documented
  algorithm for choosing tapes - but you are asking for problems ...

<P>
So, the trick is to invert your concept of things and put Bacula in charge of
  handling the tapes.  Once you do that, you will be fine.  If you want to
  anticipate what it is going to do, you can generally figure it out correctly
  and  get what you want.  

<P>
If you start with the idea that you are going to force or tell Bacula to use
  particular tapes or you insist on trying to run in that kind of mode, you will
  probably not be too happy.

<P>
I don't want to worry about what tape has what data. That is what Bacula is
  designed for.

<P>
If you have an application where you *really* need to remove a tape each day
  and  insert a new one, it can be done the directives exist to accomplish that.
  In such a case, one little "trick" to knowing what tape Bacula will want at
  2am  while you are asleep is to run a tiny job at 4pm while you are still at
  work  that backs up say one directory, or even one file. You will quickly find
  out  what tape it wants, and you can mount it before you go home ... 

<P>
<A NAME="Password_generation"></A>
<H1><A NAME="SECTION002360000000000000000">
Password generation</A>
</H1>
[How do I generate a password?]
<A NAME="313"></A>

<P>
Each daemon needs a password.  This password occurs in the configuration
   file for that daemon and in the bacula-dir.conf file. These passwords are
   plain text.  There is no special generation procedure.  Most people just
   use random text.

<P>
Passwords are never sent over the wire in plain text.  They are always
   encrypted.

<P>
Security surrounding these passwords is best left security to your
   operating system.  Passwords are not encrypted within Bacula
   configuration files.

<P>

<P>

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html230"
  HREF="Tips_Suggestions.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html224"
  HREF="Bacula_Problem_Resolution_G.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html218"
  HREF="Contents.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html226"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html228"
  HREF="GNU_Free_Documentation_Lice.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html231"
  HREF="Tips_Suggestions.html">Tips and Suggestions</A>
<B> Up:</B> <A NAME="tex2html225"
  HREF="Bacula_Problem_Resolution_G.html">Bacula Problem Resolution Guide</A>
<B> Previous:</B> <A NAME="tex2html219"
  HREF="Contents.html">Contents</A>
 &nbsp; <B>  <A NAME="tex2html227"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html229"
  HREF="GNU_Free_Documentation_Lice.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>

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